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

Re: Regex (lookahead) Confusion

by valentin (Abbot)
on Feb 05, 2004 at 21:04 UTC ( #326881=note: print w/ replies, xml ) Need Help??


in reply to Regex (lookahead) Confusion

does this do what you want to?

my $string = "smasm"; if ( $string =~ /(.).*\1$/ ) { print "$1" ; #match a double char }


Comment on Re: Regex (lookahead) Confusion
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2015-07-08 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls