您好以下代码,我使用以下代码从页面中删除我不知道的内容:
我正在使用正则表达式,我不能使用jsoup,请不要提供任何jsoup链接或代码,因为这对我来说没用.
<cfset removetitle = rereplacenocase(cfhttp.filecontent, '<title[^>]*>(.+)</title>', "\1")>
Run Code Online (Sandbox Code Playgroud)
现在高于同样的方式,我想使用以下内容:
1. <base href="http://search.google.com">
2. <link rel="stylesheet" href="mystyle.css">
3. and there are 5 tables inside the body, i want to remove the 2nd table.,
Run Code Online (Sandbox Code Playgroud)
任何人都可以指导这一点