Try something like this (untested): s/\cK\d{1,2}(?:,\d{1,2})?|[\cK\cB\cI\cU\cR\cO]//g
Update: ikegami is right indeed. Try this then: s/\cC\d{1,2}(?:,\d{1,2})?|[\cC\cB\cI\cU\cR\cO]//g
In reply to Re: IRC color code stripping
by ambrus
in thread IRC color code stripping
by Shadow1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |