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 |
In Section
Seekers of Perl Wisdom