s/("SAd"Boy)/ my($s,$b)=($1,"'bad'girl"); substr($s,-1) x= length$b; (lc$s^$s)&(lc$b^uc$b)^lc$b /ieg
In reply to Re: Case-sensitive substitution with case-insensitive matches
by I0
in thread Case-sensitive substitution with case-insensitive matches
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |