Re: the only difference is the 'x' after '/g'
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 31 Mar 2006 10:15:43 -0800
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
.
- References:
- the only difference is the 'x' after '/g'
- From: Tom Arnall
- Re: the only difference is the 'x' after '/g'
- From: Hans Meier
- Re: the only difference is the 'x' after '/g'
- From: Tom Arnall
- Re: the only difference is the 'x' after '/g'
- From: Hans Meier
- the only difference is the 'x' after '/g'
- Prev by Date: How to printout matching pattern in command line
- Next by Date: Re: How to printout matching pattern in command line
- Previous by thread: Re: the only difference is the 'x' after '/g'
- Next by thread: Re: the only difference is the 'x' after '/g'
- Index(es):