[TriLUG] [OT] not very good at regular expressions

James Olin Oden james.oden at gmail.com
Fri Jun 1 10:15:04 EDT 2007


On 6/1/07, Blackburn, Marvin <mblackburn at glenraven.com> wrote:
> I need to come up with a regular expression that will list all the ip's from
> 192.15     thru 192.32
>
In perl I would do:

    /^192\.(1[5-9]|[23][0-9])\./

Its likely the parens weould need to be escaped in a more standard
regex engine....james

P.S.  Didn't test this...off the top of my head...YMMV



More information about the TriLUG mailing list