text crawler doesn't do multi line searches

Tool for Search and Replace across multiple files.
User avatar
future systemz

text crawler doesn't do multi line searches

Post by future systemz »

Thanks for a great tool.

I have found that text crawler doesn't do multi line searches, eg the following expression <html.*ead> whould match all of the below text.

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>




thanks for any advice
User avatar
future systemz

Post by future systemz »

I tried this:

<html(.|\r\n)*?head>

its rather ugly but I guess its better than nothing :)

what do you think DV?
User avatar
DV

Post by DV »

The dot doesn't match across newlines in this regular expression implementation. You could use
<html[\s\S]*ead>
which would match.
This behaviour will be improved in TC 2.0...
Post Reply