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.