in reply to Removing the carriage return in a Find & Replace?
Per HTML standard, <CR>, <LF> and <space> are interchangeable separators in an HTML document. Moreover, a string of two or more separators is treated like a single separator.
So, if you want to catch <TD><FONT FACE=arial SIZE=-1> with a regex you should expect 0 or more separators wherever a separator is optional and 1 or more wherever it is required. That said, I think that /<TD>\s*<FONT\s+FACE=arial\s+SIZE=-1>/ should be enough.
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Removing the carriage return in a Find & Replace?
by bobafifi (Beadle) on Sep 26, 2008 at 12:04 UTC | |
by Fletch (Bishop) on Sep 26, 2008 at 12:13 UTC | |
by mscharrer (Hermit) on Sep 26, 2008 at 13:51 UTC | |
by bobafifi (Beadle) on Sep 30, 2008 at 16:03 UTC | |
by bobafifi (Beadle) on Sep 26, 2008 at 15:54 UTC | |
by psini (Deacon) on Sep 26, 2008 at 12:17 UTC | |
by bobafifi (Beadle) on Sep 26, 2008 at 12:24 UTC | |
by broomduster (Priest) on Sep 26, 2008 at 13:07 UTC |