i would love to get rid of some tiny images in a rssfeed by matching and removing them with Apples NSRegularExpressions.
<img src="somepic" height="1" width="1"> should be matched for removal
<img src="somepic" height="50" width="100"> -> should also be matched
<img src="somepic" height="100" width="100"> -> this one should not be matched
my current approach is not working yet
<img(\s*[height|width]\s*=\s*"([0-9]|[1-9][0-9])"\s*+|[^>]+?)*>
my guess is there is some problem with the capture groups (which are probably not needed at all). Does anyone have a hint why its not working?