redss has asked for the wisdom of the Perl Monks concerning the following question:
For example if I want to extract the password value 'foo' from the string 'password=foo&user=bar', then I will look between the text 'password=' and the ampersand.
I know how to do that with a few statements using split() but is there a one-line regex that will do it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple regex question
by Your Mother (Archbishop) on Jul 16, 2005 at 21:45 UTC | |
|
Re: simple regex question
by holli (Abbot) on Jul 16, 2005 at 18:01 UTC | |
by sk (Curate) on Jul 16, 2005 at 18:32 UTC | |
by tlm (Prior) on Jul 17, 2005 at 02:09 UTC | |
|
Re: simple regex question
by redss (Monk) on Jul 16, 2005 at 18:52 UTC |