Phoenix.pm: Regex question

Michael Dearman mdearman at inficad.com
Fri Feb 2 18:53:46 CST 2001


Love a good regex mystery. This one still just that.

Using the no-paren-mem operater  with your last regex appears to do away with the nulls.
my @tokens = $string =~ /"(?:[^"]+)"|(?:\S+)/g;

Why? *shrug*
Mike D.



More information about the Phoenix-pm mailing list