-2

I have a trouble to edit a regular expression to find a numeric value (with dot) between html tag. ex. <div class="features"><p class="c-txt--darkest">€ <!-- -->250.000<span class="box tp-w--s c-txt--darker">

I need to find in this case 250.000, but if the price is just of 5 characters ex. 90.000 with the dots my regular expression @(.......)<span class="box tp@ include (>) can anyone help me?

Filburt
  • 16,221
  • 12
  • 59
  • 107
  • You can directly use /\d+.\d+/ to extract number from the string – RK_15 May 25 '21 at 09:25
  • Does this answer your question? [Reference - What does this regex mean?](https://stackoverflow.com/questions/22937618/reference-what-does-this-regex-mean) – Filburt May 25 '21 at 09:38

0 Answers0