Remove everything before br tag Regex

468 views Asked by At

How do I remove everything before the first br tag in regex Yahoo pipes?

Regex module

in [item.description] replace [.+(<br>)] with [mytext]
1

There are 1 answers

2
Tomalak On BEST ANSWER

Yours:

in [item.description] replace [.+(<br>)] with [mytext]

Correct:

in [item.description] replace [.+?(<br>)] with [mytext]

See: Greedy vs. non-greedy matching.

Also, the parentheses are superfluous. .+?<br> would work as well.