in reply to Re^2: regexp question
in thread regexp question
What's the point of having such a character inside a character class? All you can do is build 4 different character classes: /[.]/, /[.\n]/, /[^.]/, /[^.\n]/. But they can all be written in a simple, different way: /./, /(?s:.)/, /\n/, and /(*FAIL)/
So, once again, what would be the advantage of having dot inside a character class mean the same thing as outside of it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: regexp question
by Not_a_Number (Prior) on Oct 28, 2011 at 18:03 UTC | |
by JavaFan (Canon) on Oct 28, 2011 at 18:28 UTC | |
by Not_a_Number (Prior) on Oct 28, 2011 at 19:08 UTC | |
by JavaFan (Canon) on Oct 28, 2011 at 19:25 UTC |