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.

Help with regexp

Help for those learning Tcl or writing their own scripts.
Post Reply
w
w00f
Halfop
Posts: 49
Joined: Wed Oct 04, 2006 6:50 pm

Help with regexp

Post by w00f »

hey guys , i have a little problem in regex while grabin some info from other bot.

(@bot) NEW SLAP: Someone pimp slaps nick with a brain

here a little part of the code

Code: Select all

set arg [stripcodes bcru $arg]
regexp -- {^(NEW SLAP: (.*?) pimp slaps (.*?) with (.*?))$} $arg -> by who with
that works if there are no colors/underline/bold in 'bot' message, although having stripcodes to rip off all of that.

can anyone gimme a light ? ;)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Code: Select all

regexp -- {NEW SLAP: (.*?) pimp slaps (.*?) with (.*?)} $arg -> by who with
Post Reply