regexyahoo-pipes

Remove everything before br tag Regex


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

Regex module

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

Solution

  • 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.