views:

34

answers:

1

Hi,

I'm currently working on a pipe on Yahoo! Pipes. I got a RegExp to match an URL. Now, I need to match the unmatched in order to delete it, so that there is only my URL. My RegExp is:

[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+

How do I invert the matching? (It has to be done via another RegExp, YPipes doesn't support any other way.)

edit: For clarification: I got a string and need to get the first URL inside of it. That's why nothing else works…

A: 
Tomalak
Please read the edit. I think, another possibility would be to have the other content captured later on to support $1 again. Do you got any idea?
FB55
Tomalak