You will almost certainly need to account for carriage returns, so you
could try something like
<head>(?s:.*)</head>
This makes use of a non-capturing parenthesis with the 's' to allow
the pattern ('.') to match \r
On Nov 30, 2007, at 6:44 AM, Marine Themes wrote:
I have thousands of web pages where I need to replace the entire
head tag regardless of what is already there. The information varies
between pages so I cannot specify what text is between the tags. Is
there a way of doing a grep search for the <head> <\head> tags while
not specifying the contents of such during the search?
--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>