RegEx - How to Extract Price?
Posted
by st4ck0v3rfl0w
on Stack Overflow
See other posts from Stack Overflow
or by st4ck0v3rfl0w
Published on 2010-03-12T05:31:56Z
Indexed on
2010/03/12
5:37 UTC
Read the original article
Hit count: 262
How would I extract the dollar amount from the following string
"some text will go here and more and more and then there will be some price $34.03 but that doesn't mean the string will end"
I want to extract $34.03...also want to extract if there is no cents
"some text will go here and more and more and then there will be some price $34 but that doesn't mean the string will end"
Here I want to extract $34
© Stack Overflow or respective owner