karden has asked for the wisdom of the Perl Monks concerning the following question:
For a correctly matching pattern, this line of code:
$word =~ /(\d)\s[t=(\S+)]*/;
returns the decimal in $1 properly but does not return the string in $2 (returns null always).
How can I capture a string inside such a character class? Anything special with it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: string selection from a character class
by Limbic~Region (Chancellor) on Jul 12, 2007 at 15:04 UTC | |
|
Re: string selection from a character class
by FunkyMonk (Bishop) on Jul 12, 2007 at 15:09 UTC | |
|
Re: string selection from a character class
by karden (Novice) on Jul 12, 2007 at 15:37 UTC | |
by toolic (Bishop) on Jul 12, 2007 at 15:51 UTC | |
by karden (Novice) on Jul 12, 2007 at 16:16 UTC | |
by moritz (Cardinal) on Jul 12, 2007 at 15:54 UTC |