Assume there is a file abc.php which gets the content of page aaaa.html using curl. So that the content of aaaa.html are now in $data in abc.php. What i want is that, there is an element in aaaa.html which is I want the value 32 to be stored in another variable $number. I know it can be done with regular expressions, i don't know the code for that.