From: "David A. Black" Date: 2004-09-20T10:26:10+09:00 Subject: Re: Method improvement request .-- Hi -- On Mon, 20 Sep 2004, Charles Hixson wrote: > Charles Hixson wrote: > > > James Edward Gray II wrote: > > > >> On Sep 19, 2004, at 4:03 PM, Charles Hixson wrote: > >> > >>> Sorry. It took me a bit of digging to find the /.../x documentation > >>> even after you explicitly pointed it out to me. (This won't work > >>> for me, because my actual pre- and post- patterns also exclude > >>> spaces, but it can certainly clarify the example, if one understands > >>> it!) > >> > >> You can match space characters in an /.../x regex. The easiest way > >> is to use the whitespace character class escape \s. > >> Hope that helps. > >> James Edward Gray II > > > > Does that work inside character class definitions( [] delimited groups)? > > Silly of me, of course not. /s *IS* a character class definition. > > But this does mean that I won't be able to use /.../x in the code. > Still, it's great for clarifying the examples, now that I understand it. There's no regex without /x that cannot be expressed with /x :-) David -- David A. Black dblack@wobblini.net