tardypad / sailfishos-daily-comics

Daily comic strips reader for SailfishOS
MIT License
12 stars 17 forks source link

Swamp has changed, new regex here #88

Closed cow-n-berg closed 4 years ago

cow-n-berg commented 5 years ago

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

cow-n-berg commented 5 years ago

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

dryo commented 4 years ago

@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.