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 / Creating a variable to...
Power Automate
Suggested Answer

Creating a variable to be used as a regular expression

(0) ShareShare
ReportReport
Posted on by 43
In the Parse text below I need to search for the string C0001. FileContents will contain C0001 through C9999. I'm trying to put the FileContents into a regexp so that I can use it as the Parse in the Parse text action. Can someone help me define the FileContents variable. 
 
I have the same question (1)
  • Suggested answer
    harish_sada Profile Picture
    53 on at

    use blow code
     
     
     
    Text.ParseText.RegexParseForFirstOccurrence Text: NewVar3 TextToFind: $'''C\\d{4}''' StartingPosition: 0 IgnoreCase: True OccurrencePosition=> Position Match=> Match
     
     
     
     
     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard