This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Strip color and bold code from variable ...

Old posts that have not been replied to for several years.
Locked
t
tff2

Strip color and bold code from variable ...

Post by tff2 »

Hell Mate´s !

Really need a little help with that...
The bot should be able to strip all bold (\002) and color (\003xxx) from a variable...

Pls help me :)

Thx in advance !
tff2
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

proc ctrl:filter {str} { 
  regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str 
  return $str 
}
proc written by ppslim for the No!Spam script
Elen sila lúmenn' omentielvo
Locked