in reply to Re^2: regex not working..
in thread regex not working..
... it wont accept any of these ...
Not sure what you mean by 'it' (since you do not supply a self-contained, runnable code example) or 'these' (since you don't supply the data in your strings), but your code (as well as all the possibilities suggested by davido) seems to work for me.
>perl -wMstrict -le "my $str = 'NOTICE AUTH :*** Bla bla must type /QUOTE PASS 16934'; my $pass; ($pass) = $str =~ m{/QUOTE\sPASS\s(.*?)$}; print qq{'$pass'}; " '16934'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: regex not working..
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 |