in reply to Re^3: regular expressionin thread regular expression
Slight variation so you don't need the length:
substr($str, 6, -4) =~ s/./X/g;
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (534 votes). Check out past polls.