samedi 25 avril 2015

How to get the number out of a HTML string without tags?


I have the following string inside the source of some website:

user_count: <b>5.122.512</b>

Is this possible to get the number out of this string, even if the tags around this number were different? I mean, "user_count:" part won't change, but the tags can be changed, to strong for example. Or the tags could be doubled, or whatever.

How can I do that?


Aucun commentaire:

Enregistrer un commentaire