megaurav2002 has asked for the wisdom of the Perl Monks concerning the following question:
I want to capture the last character in these strings. The last character will always be a digit. But this string may have any number of patterns like "1-2" or "3-4". Can anyone please suggest some rex for it. Thanks!"1-2, 3-4, 5-6" or "1-2, 3-4" or "1-2"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String matching problem
by merlyn (Sage) on May 08, 2007 at 10:43 UTC | |
| |
|
Re: String matching problem
by RL (Monk) on May 08, 2007 at 10:58 UTC | |
|
Re: String matching problem
by cool (Scribe) on May 08, 2007 at 11:29 UTC | |
|
Re: String matching problem
by syphilis (Archbishop) on May 08, 2007 at 13:33 UTC | |
by FunkyMonk (Bishop) on May 08, 2007 at 16:18 UTC | |
by cool (Scribe) on May 08, 2007 at 14:13 UTC | |
by megaurav2002 (Monk) on May 09, 2007 at 00:55 UTC |