Re: the only difference is the 'x' after '/g'



Hans Meier wrote:
To make your distiction, you *have* to use the \s with the /x modifier;

No you don't. And it would be pretty bad design if you did, since \s
matches far more than just a single space character.

/foo\ bar/x
/foo[ ]bar/x

will both match the string 'foo bar'.

/foo\sbar/x

would match 'foo bar', but would also match "foo\nbar".

Paul Lalli

.