in reply to //s modifier
AFAIK you will need either the /m or /s operator - otherwise your regex will only ever look at a single line.
If you use /m, then you will still need to handle newlines (since . won't match a newline). If you use /s, then . will match newlines, so will lead to a shorter regex.
(Not tested)
/<title>.*resultados.*<\/title>/is is equivalent to: /<title>.*\n?.*resultados.*\n.*<\/title>/im
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: //s modifier
by tirwhan (Abbot) on Mar 21, 2006 at 11:54 UTC | |
|
Re^2: //s modifier
by timos (Beadle) on Mar 21, 2006 at 11:45 UTC | |
by Melly (Chaplain) on Mar 21, 2006 at 12:04 UTC |