Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Regex Pipe Return

by roboticus (Chancellor)
on Dec 27, 2012 at 01:24 UTC ( #1010435=note: print w/replies, xml ) Need Help??


in reply to Regex Pipe Return

TapTapTaperoo:

Sure ... use a character class (or non-capturing grouping). Something like:

my $string = 'xxxxxxabxxx'; print $1 if $string = /(x*[ab][ab]x*)/;

should work.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2016-09-30 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (563 votes). Check out past polls.