I have for example this line:
blabla bla bla -example rarara
I want the bot to announce it like this:
<bot> blabla bla bla
<bot> rarara
so everyting before "-example" will be announced on the first line and everyting after "-example" will be announced on the second line
I search true this forum and the only thing i could find that is almost the same as i am looking for was http://forum.egghelp.org/viewtopic.php? ... ght=regexp
Now i am really a noob, so laugh and make fun of me, but i tried:
Code: Select all
set one $text
set two $text
regsub -all -- $one "-example*" one ""
regsub -all -- $two "*-example" two ""
So who can help me
Thanks