[TriLUG] Fw: Re: [OT] not very good at regular expressions

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


On 6/1/07, Rodney Radford <rradford at mindspring.com> wrote:
>
> James, wouldn't that match the addresses of 192.33 - 192.39 as well, since the 3 could pair with anything in [0-9]?
>
> While there may be a more elegant solution, one way would be making anything 30 and above as a special case, as in:
>
>    /^192\.(1[5-9]|2[0-9]|3[0-2])\./
>
> And no, this was not posted to the list as I am not positive about my answer, but wanted to give you the chance to correct your post if it is indeed wrong.
>
I'm positive.  I had a brain fart, and boy did it stink.   Yeah I
missed the upper end constraignt but caught the lower end one...silly
me.

Thanks...james



More information about the TriLUG mailing list