How can I extract number from text with regular expression

MihicaStok

I am trying to extract number from title. I have title like this:

**

Apartment London, 230.400€, 450,00m2

**

I want to extract only this price number (230.400€), can anybody help me with this?

So far my code look like this

\d+\.?\d+(.)
Mamun

You can include the amount symbol as part of your RegEx:

/\d+\.?\d+(.)€/

Or you can try using Positive lookahead:

\d+\.?\d+(.)(?=€)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to extract numbers after text with a number with a regular expression?

How to extract number before specific text with regular expression?

How I can extract specific target number from text file

How to extract text from a string using a regular expression in R?

How i can extract substring from string using regular expression in .NET

How can I extract some patterns of sub text from a gibberish looking text using regular expressions?

How can I extract movie names by regular expression

How can I extract string using Php regular expression

regular expression to extract number from string

extract number from string using regular expression

How can extract string matches using regular expression from a List?

Regular expression : extract text from middle of line

regular expression to extract JSON string from text

How can I extract the number from this BeautifulSoup?

regular expression: extract number in an expression

How can I extract text from images?

Regular expression to extract any 4 digit number starting beginning with 5 from a text file using python

How can I extract a 6 digit number from the text in excel? Examples shown below

Regular expression to extract a text in double quotes and the the number behind

How do I generate text matching a regular expression from a regular expression?

Regular expression to extract chunks of text from a text file?

How can I exclude a specific string from a regular expression?

Using regular expression to extract number

extract number using regular expression

Regular expression to extract a number of steps

Regular expression to extract number with hyphen

How do I extract only number from dynamic headline/text?

postgres regular expression - extract magnitude level number from string

Regular Expression, extract the number with a decimal place from API input