On Thu, Jun 07, 2001 at 08:25:05AM -0700, Martin Weinless wrote: > take the regexp '.n+..?.?v*.' > > By all that is sacred, if we use the string 'supernova', there should be > no match since there are too many characters before the 'n' Nope. Consider supern ova ^^ ^ .n+.?.?v*. .?.?v* is all optional, and the regex engine opts out of using those patterns in order to match the entire string. Your pattern is also not anchored, so the match can start anywhere. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com --
- Re: Sorting Me
- RE:[OT]Sorting (with friendly list ne... Paul
- [OT] Origin of "Orcish Mane... Jeff Pinyan
- Re: Regexp Question Carl Rogers
- RE: Regexp Question Nic LAWRENCE
- Re: Regexp Question Paul
- regexp question Martin Weinless
- Re: regexp question Jeff 'japhy' Pinyan
- Re: regexp question Martin Weinless
- Re: regexp question Michael Fowler
- Re: regexp question Peter Scott
- Re: regexp question Pete Emerson
- Re: regexp question Paul
- Re: regexp question Peter Scott
- RE: regexp question Wagner-David
- Re: regexp question Michael.Firestone
- Regexp question Tim Wood
- Re: Regexp question Me
- Re: Regexp question Tim Wood