B
Brian Andrus
I am trying to parse an html line that contains lots of noise. I have
gotten it down mostly, but am having trouble with exact matches.
The part I am looking at will be
*align="right"><b>##.###</b></td>*
where * is much useless stuff and ##.### is the part I am trying to
extract.
The issue:
examples of what ##.### might be:
9.31
0.17
8.345
12.72
So I need to get something that will return the value whethere there
is 1 or 2 digits before the decimal and 2 or 3 digits after.
I have
/^*align="right"><b>*([0-9]\.[0-9][0-9])/
which will work for #.##, but not the other possibilities. How do I
get all the possibilities in a single search? When I try using *
inside the parentheses, I get an error.
Brian Andrus
gotten it down mostly, but am having trouble with exact matches.
The part I am looking at will be
*align="right"><b>##.###</b></td>*
where * is much useless stuff and ##.### is the part I am trying to
extract.
The issue:
examples of what ##.### might be:
9.31
0.17
8.345
12.72
So I need to get something that will return the value whethere there
is 1 or 2 digits before the decimal and 2 or 3 digits after.
I have
/^*align="right"><b>*([0-9]\.[0-9][0-9])/
which will work for #.##, but not the other possibilities. How do I
get all the possibilities in a single search? When I try using *
inside the parentheses, I get an error.
Brian Andrus