Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Basic Regular expression

by choroba (Cardinal)
on Feb 09, 2017 at 16:30 UTC ( #1181545=note: print w/replies, xml ) Need Help??


in reply to Basic Regular expression

$2 can't be null, because it must be either e or r to make the match successful.

Compare with

$a =~ /^(.+)([er]?)(.*)$/;

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Basic Regular expression
by skkeni04 (Initiate) on Feb 13, 2017 at 03:32 UTC
    Thanks, Got it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2022-12-01 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?