I grab the source code of a website with file_get_contents(). Inside this code, i try to detect this king string and put the content of idDM in a variable.
'idDM':'x1mi7f7'
For example, here, $idDM will be equal to x1mi7f7, but the string can be :
'idDM':'xxxxxxx'
And the variable will be xxxxxxx.
I know o have to use REGEX for that. For now, I just manage to find if there is IdDM, but not to recover its contents.
Any advice ? Thanks.