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 / Copilot Studio / RegEx in Copilot Studio
Copilot Studio
Suggested Answer

RegEx in Copilot Studio

(1) ShareShare
ReportReport
Posted on by 169
I want to perform a RegEx on the user query/question but it is not possible because the functions match and ismatch are not supported in Copilot Studio PowerFX. For example, I want to go to a specific topic if the query contains XXX-XX-XX pattern.
Anyone know how to do this?
Thank you.
Categories:
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,597 Super User 2025 Season 1 on at
    Hi  ,
     
    You can use PowerFX's existing string functions like Mid, Left, and Right to isolate parts of the string.
     
    But the Actual Solution for your problem could be using Inputs in Topics. The Description that you provide in LLM itself is capable to extract and identify the required pattern.
     
    You can read through the below post that i have written.
     
     
     
    Hope this can solve your problem.
     
    Thanks.
  • Low Code No Code Pro Code Ninja Profile Picture
    9 on at
    We can implement regex by creating custom entities in Copilot studio.

    Refer to this blog: https://www.microsoft.com/en-us/microsoft-copilot/blog/copilot-studio/regex-regular-expression-entity-support-in-power-virtual-agents/
    regex-as-entity.png

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 > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 454

#2
M Bilal Khan Profile Picture

M Bilal Khan 198

#3
11manish Profile Picture

11manish 196 Super User 2026 Season 2

Last 30 days Overall leaderboard