Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: solution wanted for break-on-spaces (w/specifics) (?>...)

by LanX (Saint)
on Oct 24, 2021 at 23:03 UTC ( [id://11137988]=note: print w/replies, xml ) Need Help??


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

Hint: You don't need to worry about backtracking with (?>...) instead of (?:...)

This will not only make your code simpler but also faster.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: solution wanted for break-on-spaces (w/specifics) (?>...)
by perl-diddler (Chaplain) on Oct 26, 2021 at 16:27 UTC
    BTW, on the no-backtracking -- that was a later addition one of about 10-15 alterations in the statement I tried over time.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2025-11-16 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.