PDA

View Full Version : Searching For A Word?


Kingly_Krab
07-02-2013, 04:12 PM
In Perl how would you search for a word after a word. Such as #username Test, how would you check that they used #username and then use the word "Test" for something else? Thanks in advance.

sorvani
07-02-2013, 04:57 PM
I am assuming you do not realize that the normal EVENT_SAY stuff is simply doing a regex patten search?
Thus a very simple google search (https://www.google.com/webhp?q=perl%20regex%20find%20word%20after%20keywo rd) returns a few instructions such as this one (http://stackoverflow.com/questions/12684184/how-to-search-for-alphanumeric-word-before-or-after-a-keyword-in-perl).

Kingly_Krab
07-02-2013, 05:05 PM
Thanks for the reply.

Nerdgasm
08-17-2013, 07:32 PM
The Bird is the Word, Zamthos.