in reply to Help with reg expressions

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Re: (Zigster) Help with reg expressions
by zigster (Hermit) on May 03, 2001 at 20:20 UTC
    Nooo see Death to Dot Star for a full discussion. This is a greedy match. The dot star will match as much as possible and is dangerous. At very least use a ? to cause a lazy match. When you say everything do you mean everything or do you mean only letters then try  [A-Za-z]{4} or  \w{4} (The {4} matches 4 times only) Try to make your regexp as specific as possible.
    --

    Zigster