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.

scaning text from trigger

Old posts that have not been replied to for several years.
Locked
b
bazn
Voice
Posts: 12
Joined: Sun Jul 04, 2004 11:55 am

scaning text from trigger

Post by bazn »

he it's me again :)

i have a question;

i have a trigger:

!quote this are the words i want to search for
and my script fills all the spaces with a % to use it for a mysql search etc... easy...

now i want a new function:

!quote nickname this are the words i want to search for =chan lobby =day sunday

but i haven't got an idea how to realize this coz now i have to filter out:

"nickname" "this are the words i want to search for" "=chan lobby" "=day sunday"

can someone help me with this?

cheers
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

You could use regexp, something like this should do it (untested)...

Code: Select all

regexp {(.*?)\s(.*)\s\=chan\s(.*)\s\=day\s(.*)$} $line garbage nickname text channel day
Locked