RegEx for the header:
(?i).*?<i>([^<]*).* [ ] g [x] s [ ] m [ ] i
RegEx for reference:
(?i).*?href="([^"]*).* [ ] g [x] s [ ] m [ ] i
Somehow, the case-insensitive flag seems to be broken. Fortunately, you can replace (?i) , which works great.
Here is a good web2.0-ish tool for checking regular expressions with RegExr . But for some reason it is still in beta .; -)
source share