ramya2005 has asked for the wisdom of the Perl Monks concerning the following question:
Any input provided will be much appreciated! Thanks.my $str = "aaa authentication login\x0d\n ssid Rich\x0d\n authentic +ation open\x0d\n authentication shared \x0d\n"; my $authentication; while ($str =~/authentication (\S+)/){ $authentication = $authentiction. $1. " "; } # At the end of the while loop # $authentication should have the value # $authentication = open shared
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting text from a string using regex
by holli (Abbot) on Dec 20, 2005 at 19:07 UTC | |
|
Re: Extracting text from a string using regex
by GrandFather (Saint) on Dec 20, 2005 at 19:46 UTC | |
|
Re: Extracting test from a string using regex
by davido (Cardinal) on Dec 20, 2005 at 18:49 UTC |