Currently learning PHP with RegEx and I want to extract the DAX value from a website.
Got the website source with file_get_contents and then cleaned up the tags with strip_tags.
The block that contains the string i want is this one:
Dax5.502-2,4%
but i just need the value 5.502
The regex code I have so far is '/@Dax\d.\d\d\d[+-]\d,\d[%]$/'
But it doesnt work. can anyone tell me how to do this correctly.
Thanks 🙂
your result will be the number