Skip to main content

Notifications

Power Automate - Power Automate Desktop
Answered

Parse text regular expression

(0) ShareShare
ReportReport
Posted on by 75

Hi all, I am using the below regular expression to extract the text between Obligations and Renewal.

(?<=Obligations\s*)[\s\S]*?(?=\s*Renewal)

nicklimcs_2-1714624970151.png

 

 

Now, I would also like to get rid of those highlighted words too. How do I adjust the above code snippet to achieve the result?

nicklimcs_1-1714624794565.png

 

The output should be

nicklimcs_3-1714625124797.png

 

Many thanks

  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    Deenuji_Loganathan_ 6,080 on at
    Re: Parse text regular expression

    @nicklimcs 

     

    You can use "Replace text" instead of Parse like below to replace the red highlighted text with empty string.

    Deenuji_0-1714632449286.png

    Deenuji_1-1714632477474.png

     

    Deenuji_2-1714632515573.png

     

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

  • nicklimcs Profile Picture
    nicklimcs 75 on at
    Re: Parse text regular expression

    @VishnuReddy1997 

     

    Thanks it was a helpful tip.

  • VishnuReddy1997 Profile Picture
    VishnuReddy1997 2,206 on at
    Re: Parse text regular expression

    Hi @nicklimcs ,

     

    When Both Start and End Flag as Static. Instead of Parse text you can you use Crop Text action as shown below.

     

    VishnuReddy1997_0-1714625492275.png

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard