web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove lines from stri...
Power Automate
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?

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    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 😘

  • CBHodgetts76 Profile Picture
    2 on at

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

     

    Many thanks mate 👍

    CBHodgetts76

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard