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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trim text between the ...
Power Automate
Answered

Trim text between the first two similar strings

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey,

 

Is there any way to extract text between two similar text?

 

****

Title: Sample Title

****

 

*********************

The text I want to extract

*********************

 

some random text

*********************

Not needed

*********************

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @Anonymous what is the similar text ? will it be same all the time ? or will be different all the time ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Between those same number of "*" star characters.

     

    It will be about 15 *'s all the time. We want to extract between the first two occurrences 

  • jinivthakkar Profile Picture
    4,187 on at

    @Anonymous see if this works for you:

    here is my flow:

    jinivthakkar_1-1619019511042.png

     

    I split the string with 15* and then extract output as shown.

     

    Hope this helps.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @Anonymous The output after splitting 

     

    jinivthakkar_0-1619020554415.png

     

    and then in next step I extract text ABC 

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard