in reply to How to match repeating characters

next if $pass =~ /(.)\1{2}/;
No addition + or trailing /g. That would do things in triplicate.

Replies are listed 'Best First'.
Re^2: How to match repeating characters
by ikegami (Patriarch) on Apr 09, 2010 at 22:44 UTC

    That would things in triplicate.

    While if //g is quite bad — it can lead to weird errors down the line — it doesn't triplicate anything.