Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 rifling through the Monastery: (9)
As of 2017-11-20 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (294 votes). Check out past polls.

    Notices?