Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: regex (between two words)

by gurung (Sexton)
on Feb 09, 2020 at 18:20 UTC ( [id://11112692]=note: print w/replies, xml ) Need Help??


in reply to regex (between two words)

regex using lookbehind
$_ = 'aaa bbb ccc ddd ccc eee'; (@qqq) = /(aaa.*(?<=ccc))/g; print join("/n", @qqq);

Replies are listed 'Best First'.
Re^2: regex (between two words)
by gurung (Sexton) on Feb 09, 2020 at 18:53 UTC
    my bad. I didn't see you wanting list of matches.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found