spivey49 has asked for the wisdom of the Perl Monks concerning the following question:
Can someone confirm my regex for a Net::Telnet prompt? I need to match a command prompt like 'any text->'
What I have is this:
prompt => '/[\w().-]*\(?([\w.-])?\)?\s*->\s$/'Looks correct to me, but trying to set that prompt is throwing an error in Net::Telnet for some reason
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex check
by toolic (Bishop) on Aug 15, 2008 at 00:51 UTC | |
by spivey49 (Monk) on Aug 15, 2008 at 01:56 UTC | |
|
Re: Regex check
by GrandFather (Saint) on Aug 14, 2008 at 23:40 UTC | |
|
Re: Regex check
by jethro (Monsignor) on Aug 15, 2008 at 01:34 UTC |