in reply to
Match 2 same characters
Sorry for the typo. I was trying: if ( $_ =~ /(.){1}
Comment on
Re: Match 2 same characters
Replies are listed 'Best First'.
Re^2: Match 2 same characters
by
ikegami
(Patriarch)
on Mar 19, 2009 at 19:57 UTC
{1}
is a quantifier. It modifies what the preceding atom (
(.)
in this case) matches. This and other quantifiers are documented in
perlre
.
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom