Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to get only the next word matching the regex in the line

by swl (Parson)
on Nov 11, 2019 at 02:27 UTC ( [id://11108530]=note: print w/replies, xml ) Need Help??


in reply to How to get only the next word matching the regex in the line

If it is consistently formatted then you can be more specific with your capture and look for 'test\d+'.

$current_line =~ /Grab this\s+('test\d+')/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-18 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found