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. 
 
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard