in reply to Re^2: Seeker of Regex Wisdom (strings which don't form specific patterns)
in thread Seeker of Regex Wisdom (strings which don't form specific patterns)
your suggestion is a pure regex, which makes perfect sense in J. Friedl's book, but I do not think it is more selective than my proposal, mixing a regex and some arithmetics, which looks for four dot-separated integer numbers smaller than 256. (Except that I used \d instead of [0-9] for brevity, so that my regex might match (non-Arabic) Unicode digits, but that's easily fixed.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Seeker of Regex Wisdom (strings which don't form specific patterns)
by AnomalousMonk (Archbishop) on Aug 13, 2015 at 10:04 UTC | |
by shmem (Chancellor) on Aug 13, 2015 at 12:29 UTC | |
by Laurent_R (Canon) on Aug 13, 2015 at 10:20 UTC |