Re:My favorite regex of all time
by mutation on Tuesday November 13, 2012 @04:34AM
(#4777193)
It doesn't. Space is significant here, and if '-' is a the front of the matching character class it matches literal '-'. Your regex '[- ~]' matches either '-' or ' ' or '~'.
[ Parent
| on HN ]
There are no comments on this comment yet.