in reply to Re: Strange regex to test for newlines: /.*\z/
in thread Strange regex to test for newlines: /.*\z/
It works because . does not match newlines by default.
That's what I meant by "horizontal characters". But as "." has an asterisk after it, the regex should also match if "." does not match, shouldn't it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Strange regex to test for newlines: /.*\z/
by jettero (Monsignor) on May 21, 2007 at 15:27 UTC | |
|
Re^3: Strange regex to test for newlines: /.*\z/
by Joost (Canon) on May 21, 2007 at 12:37 UTC |