As a disclaimer, I'm in the middle of reading Mastering Regular
Expressions[0], so my head isn't in the right place. None of these solutions
should be used in production code ever, probably.
Assuming something like 1,000,000,000,123,212,888,546,248 is in $_,
Using only a match, no substitution:
s
On 2/10/11 Thu Feb 10, 2011 1:07 PM, "David Jacopille"
scribbled:
> Is there a way to match and substitute at the same time?
>
> I have an html table where each row contains 11 columns of numbers.
>
> Unfortunately all the numbers have commas separating the thousands, millions,
> etc.
>
> To
Is there a way to match and substitute at the same time?
I have an html table where each row contains 11 columns of numbers.
Unfortunately all the numbers have commas separating the thousands, millions,
etc.
To find the number I need to match against [\d,].
What I really want is the capture ar