Answer the question
In order to leave comments, you need to log in
Finding data in html using regular expressions?
Colleagues, good day! Help advice or code.
In general, I need to look for some data in the html page:
In the html page, I need to find such a block
s = "<span class=\"company__segment__change\"> <span class=\"company__segment__inner\">$$$</span> </span>"
Answer the question
In order to leave comments, you need to log in
Hello.
There is such a variant of the regular expression https://regex101.com/r/KRX5Qe/1
Looks for numbers with and without a minus , integers and reals , with a separator "dot" and "comma" .
If you need a code in php, then in the menu on the left there is a tool "Generated Code"
For python, it is enough to remove jealous quantifiers https://regex101.com/r/KRX5Qe/3
If this solution does not suit you, then you can describe your task in more detail. I'll try to help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question