# 1 2 3 4 #2345678901234567890123456789012345678901234 perl -pe's/(.)\1(\1*)(?!\1)/$2?$&:"($&)"/ge' file.txt
-Blake
In reply to Re2: How to do it in one line?
by blakem
in thread How to do it in one line?
by r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |