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 / Appropriate pattern fo...
Power Automate
Answered

Appropriate pattern for Regexmatch run script

(0) ShareShare
ReportReport
Posted on by 9

Hello,

 

I need help with writing a pattern to find the following with my RegExMatch script in my Power Automate flow:

 

The pattern shows up in emails as either XX/XX/12345 or XX/XXX/12345   (the X's represent letters)

 

How do I write this pattern appropriately here? 

sa37_0-1706816633581.png

 

Categories:
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    [a-zA-Z]{2}\/[a-zA-Z]{2,3}\/\d{5}

     

    This is per Tux2 from Twitch. I didn't do this myself. 

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @sa37 

    Try

    ^[A-Za-z]{2}/[A-Za-z]{2,3}/\d{5}$
  • sa37 Profile Picture
    9 on at

    Thank you! This one worked 🙂

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