tardypad/sailfishos-daily-comics

Swamp has changed, new regex here

Closed this issue · 2 comments

var regex = /\n.\n.<img[^>]src="([^"])"/;

Or maybe /<img[^>]src="([^"])"\s*alt="Swamp\sCartoon\sof\sthe\sDay/

dryo commented

@cow-n-berg Your regex does not match for me. At least a plus sign has to be added, like so:
<img[^>]src="([^"]+)"\s*alt="Swamp\sCartoon\sof\sthe\sDay
To make it even more general I'd propose this one:
<img[^>]+src="([^"]+)"[^>]+alt="Swamp\s+Cartoon\s+of\s+the\s+Day
I made pull request #92.