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 / 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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard