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 do I generate text matching a regular expression from a regular expression?

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

Regular expression to extract a number of steps

regular expression: extract number in an expression

extract number from string using regular expression

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

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

Using regular expression to extract number

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

How can I extract text from images?

regular expression to extract JSON string from text

regular expression to extract number from string

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

How can I extract movie names by regular expression

Regular expression : extract text from middle of line

How can I extract string using Php regular expression

How can I extract the number from this BeautifulSoup?

extract number using regular expression

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

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

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

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

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

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

How I can extract specific target number from text file

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

Regular expression to extract number with hyphen

How to extract number before specific text with regular expression?

postgres regular expression - extract magnitude level number from string