Thursday, 15 November 2018

html - regular expression to remove links











I have a HTML page with



X


The [variable content] is different in each place, the rest is the same.
What regexp will catch all of those links?

(Although I am not writing it here, I did try...)


Answer



What about the non-greedy version:



X

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...