in reply to solution wanted for break-on-spaces (w/specifics)
Using the /x flag (see perlre), plus
would make things far more readable! ( Not only for you ...:)
Consider also composing your regex from smaller parts thru interpolation of variables.
Anyway from what I can spot are you treating " and ' very differently.
Since your requirements are fuzzy I don't dare telling what you really want.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|