If only the first letter should be flexible,print "<span class='topic'>$1</span>" if /\b(cat)\b/i;
print "<span class='topic'>$1</span>" if /\b([Cc]at)\b/;
--
[ e d @ h a l l e y . c c ]
In reply to Re^2: case preservation in regexp
by halley
in thread case preservation in regexp
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |