uva, Try the below code,
use strict; use warnings; $_="thhheeee good boyy"; s/((\w)\2{1,})/\($1\)/gsi; print $_; __END__ t(hhh)(eeee) g(oo)d bo(yy)
Regards,
Velusamy R.
In reply to Re^4: doubt in matching
by Samy_rio
in thread doubt in matching
by uva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |