Thanks all, re this and the previous discussion on this.

On Tue, May 24, 2011 at 11:12 AM, Tim Oliver <[email protected]> wrote:

> On Tue, May 17, 2011 at 8:45 PM, Mike Adams <[email protected]> wrote:
> > Using this test page
> >
> > http://spaweditor.com/scripts/regex/index.php
> >
> > with this regex
> > /\b[r|rural]+ {0,2}[d|delivery]+ {0,3}\d{1,3}/i
>
> > 1. Why do i get a match on 'level 2' and 'level 6'?
>
> You probably meant (d|delivery) - [d|delivery]+ means 'any number of
> characters from the set 'd,|,d,e,l,i,v,e,r,y'', and the characters in
> 'level' are all in that set..
>

> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to