EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Wildcard in writing perl? (https://www.eqemulator.org/forums/showthread.php?t=19636)

Kensh 10-28-2005 11:37 AM

Wildcard in writing perl?
 
Ok i was writing a quest and i got to the point where i needed a text wildcard to continue.. can someone give me an example (if there is one) of how to make it detect ANY text that is typed?

Code:

sub EVENT_SAY
{
        if($text =~/(Wildcard Here)/i)


fathernitwit 10-28-2005 02:18 PM

if you really mean 'anything'.. just drop the if.... and learn perl.

if you mean something else, ask google
http://www.google.com/search?q=perl+regex


All times are GMT -4. The time now is 05:49 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.