Regular expression on Yahoo! pipes

I'm cheating on Yahoo! pipes , and I am on the wall with some regular expression. Now I am familiar with regular expressions from Perl, but the rules just seem different in Yahoo! pipes.

Screenshot of my pipe http://lanzkron.googlepages.com/pipe.PNG

What I'm doing is fetching the page and turning it into a feed, my regular expression to remove the link from HTML works fine, but the heading that I want to be what was in the <i> tags only gives the source text.

Example text that matches in Perl and on this regexp online test :

<a rel = "nofollow" target = "_ blank" href = "http://changed.to/protect/the-guilty.html"> <i> "Fee Fi Fo Fun" (English person) </ & i GT </ a> (See also this other site <a rel = "nofollow" target = "_ blank" href = "http://stackoverflow.com"> Nada </a>) Some other texts here

+3
source share
2 answers

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 .; -)

+6
source

One important thing to keep track of YP with is to not trust the debugging screen, it has a slight quirk to hide some tags from the view, which cannot lead to confusion when trying to re-express. To open any hidden html, replace '<' with something like "#"

+2
source

All Articles