in reply to Re: regex not working..
in thread regex not working..
as you can see im trying everything heh.. this is for my channel bot, currently i dont have X so im using it to op me and other operators and also to auto ban on certain wordsif (index($input, "/QUOTE") != -1) { my $str = $input; ($pass) = $str =~ m{/QUOTE\sPASS\s(.*?)$}; print $sock "/QUOTE PASS $pass\r\n"; print $sock "QUOTE PASS $pass\r\n"; print $sock "/QUOTE PASS$pass\r\n"; sleep 2; print $sock "QUOTE PASS $pass\r\n"; print "found quote $pass\r\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex not working..
by AnomalousMonk (Archbishop) on May 12, 2012 at 17:35 UTC | |
by Anonymous Monk on May 12, 2012 at 17:52 UTC | |
by Corion (Patriarch) on May 12, 2012 at 18:00 UTC | |
by AnomalousMonk (Archbishop) on May 12, 2012 at 18:16 UTC | |
by aaron_baugher (Curate) on May 13, 2012 at 01:38 UTC |