in reply to Specific Regex with Multilines (/s and /m): Why Doesn't This Work?
if (/.../g) makes no sense conceptually and can lead to really weird behaviour. Get rid of those "g".
Some of your regex patterns contain newlines, yet the string against which you are matching contains at most one at the end.
Your match operators that have /m don't have "^" or "$" in the pattern, making the /m completely useless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Specific Regex with Multilines (/s and /m): Why Doesn't This Work?
by elvenwonder (Initiate) on Jul 19, 2011 at 14:25 UTC | |
by ikegami (Patriarch) on Jul 21, 2011 at 19:45 UTC |