Extract Regex Match

82 views Asked by At

I want to scrape the src of images in a RSS Feed with Yahoo Pipes.

This Regex is selecting exactly what I want.

src="([^"]*)"

Image: <img src="image.jpg" width="300" height="422" alt="urkunde300" style="margin-right: 10px;" />

Pipes: In scrapedimage replace src="([^"]*)" with $1

Output: <img//// width="300" height="422" alt="image300" style="margin-right:10px;"/>

How do I invert the Match so I can replace everything except image.jpg with 'nothing'

1

There are 1 answers

3
Zereges On

You want to match the whole line (<img src="([^"]+)".*), and replace it by specified group in regex ($1)