Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: solution wanted for break-on-spaces (w/specifics)

by LanX (Sage)
on Oct 23, 2021 at 22:05 UTC ( #11137927=note: print w/replies, xml ) Need Help??


in reply to solution wanted for break-on-spaces (w/specifics)

Your regex is messy.

Using the /x flag (see perlre), plus

  • linebreaks
  • space
  • comments

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

  • Comment on Re: solution wanted for break-on-spaces (w/specifics)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-12-08 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (34 votes). Check out past polls.

    Notices?