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
In reply to Re: //s modifier
by Melly
in thread //s modifier
by kettle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |