in reply to Regex, Newline, Wilcard
The dot in a character class matches a literal dot, not any character. You'd need to say "(?:.|\n)" or use the /s modifier to get the dot to match newline also (and then don't use the character class).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex, Newline, Wilcard
by ikegami (Patriarch) on Jan 27, 2009 at 22:28 UTC |