3 ms·
It is pretty ill-advised to parse HTML with regular expressions[1]. I would emphatically suggest using a HTML parser instead. This will save you a lot of headac
by marginalia_nu 4y ago
It is pretty ill-advised to parse HTML with regular expressions[1]. I would emphatically suggest using a HTML parser instead. This will save you a lot of headache. Libraries for this is available in most languages, including PHP.
[1] https://stackoverflow.com/a/1732454 https://stackoverflow.com/a/1732454