in reply to Regular Expression Help

You have used [s]? which is wrong, you should use [\s]? for space.

Prasad

Replies are listed 'Best First'.
Re^2: Regular Expression Help
by JediWizard (Deacon) on Mar 03, 2005 at 16:38 UTC

    I'd just like to point out \s by itself does not need to be in a character class. \s will work just as well as [\s]. It may also make the expression more robust to use \s* as opposed to [\s]?.

    May the Force be with you