Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Whats the best way to extract the number inside the parens without the comma?
I was using something like:date = "Number... (1,197)"
but that returns the number with the comma...I suppose I could just replace it with nothing but I was hoping to do it with the RE. Thanks/Number... \((.+?)\)/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regex needed: Capture a single entity from two discontiguous parts.
by BrowserUk (Patriarch) on Dec 23, 2006 at 16:18 UTC | |
Re: regex needed: Capture a single entity from two discontiguous parts.
by jettero (Monsignor) on Dec 23, 2006 at 15:53 UTC | |
by Anonymous Monk on Dec 23, 2006 at 16:03 UTC | |
Re: regex needed: Capture a single entity from two discontiguous parts.
by explorer (Chaplain) on Dec 23, 2006 at 16:24 UTC | |
Re: regex needed: Capture a single entity from two discontiguous parts.
by johngg (Canon) on Dec 24, 2006 at 00:34 UTC |
Back to
Seekers of Perl Wisdom