Hope this helped.$line =~ s/background-color:\s*#(?:[0-9a-f]{6}|[0-9a-f]{3});?/backgrou +nd-color: #FFFFFF;/ig;
In reply to Re: Escaping '#' in a regexp
by CombatSquirrel
in thread Escaping '#' in a regexp
by Tricky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |