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

Scott Lambdin lopaki at gmail.com
Fri Jun 1 10:43:46 EDT 2007


That will match 192.35.   So I guess /^192\.(1[5-9]|2[0-9]|3[01])\./

--Scott

On 6/1/07, James Olin Oden <james.oden at gmail.com> wrote:
>
> 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
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



More information about the TriLUG mailing list