Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://326881]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-03-29 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (351 votes). Check out past polls.