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

Re: Regex (lookahead) Confusion

by valentin (Abbot)
on Feb 05, 2004 at 21:04 UTC ( [id://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 }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-20 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found