Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Remove lines from string with wildcard?

(0) ShareShare
ReportReport
Posted on by 2

Hi All

I'm sure this has probably been asked many times before,  but I can't seem to find an answer, so am hoping that some clever genius might have an idea? I have a very long string, where the text [class="rp_rating">1</td><td width="524" ] may appear multiple times. But the >1< element can be any number, not just 1, so a simple replace will not work in all instances.  

 

Is there a way of removing all of these unwanted lines regardless of the number? Can the >1< be replaced with a wildcard or is there another way to get around this?

  • CBHodgetts76 Profile Picture
    2 on at
    Re: Remove lines from string with wildcard?

    Hi @Paulie78 , thankyou for the suggestion - I'll certainly have a look at your suggestion, very much appreciated

     

    Many thanks mate 👍

    CBHodgetts76

  • Paulie78 Profile Picture
    8,416 Super User 2025 Season 1 on at
    Re: Remove lines from string with wildcard?

    No easy way that I can think of. I would do a regex replace. I wrote an article on how to do this:

    Regular Expressions in Power Automate 

    Then you could use the regular expression:

    [class="rp_rating">\d<\/td><td width="524" ]

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1