Re: Regex
- From: Arnshea <arnshea@xxxxxxxxx>
- Date: Mon, 17 Sep 2007 10:26:17 -0700
On Sep 17, 11:23 am, Chuck Norris <ciccone1...@xxxxxxxxx> wrote:
Hi,
I don't know very much about regular expression and
I'm wondering how to extract the numeric value 0.693 from the
following text.
" 1 EUR =<b> 0.693 GBP </b>"
Thanks.
Assuming the values you're looking for are always between html bold
elements and will always have at least 1 digit both left and right of
the decimal point, the following should do it:
<b> (\d+\.\d+).*</b>
0.693 would be in match.groups[1]
.
- References:
- Regex
- From: Chuck Norris
- Regex
- Prev by Date: Re: How to show individual pixels? (Was: Show Me The Pixel)
- Next by Date: Re: C# log component
- Previous by thread: Regex
- Next by thread: sychronizing asychronous calls to DllImport function
- Index(es):
Relevant Pages
|