Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Basic Regular expression

by choroba (Cardinal)
on Feb 09, 2017 at 16:30 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found