$_ = ' RAGGTS '; while (/[RS]/) { s/ ([A-Z]*)R([A-Z]*) / $1A$2 $1G$2 /g; s/ ([A-Z]*)S([A-Z]*) / $1C$2 $1G$2 /g; } print;
In reply to Re: How to expand a string
by b4swine
in thread How to expand a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |