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 Apps / regex to extract insid...
Power Apps
Answered

regex to extract inside parentheses

(1) ShareShare
ReportReport
Posted on by 132

Hello,

Here is the regex formula to extract the inside of the parentheses : (\ ((. *?) \)) .

I created text1 with "Software (F01)" in it And I created another text (text2) to return the inside of the parentheses so F01.

In text2.Text: Match (text1; "(\ ((. *?) \))") . But it doesn't work even though it's the correct regular expression...

 

Thank you to the people who will answer me.

Categories:
I have the same question (0)
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @taubry 

     

    Take like this:

     

    poweractivate_0-1634737313408.png

    Suppose Label2 with Text "Software (F01)"

    Then I have Label3 with this Formula for Text:

     

     

     

     

    Match(Label2.Text,"\(.+?\)").FullMatch

     

     

     

     

    Check if it helps you @taubry 

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @taubry 

     

    With(
     {
     _get: Mid(
     TextInput11.Text,
     Len(
     First(
     Split(
     TextInput11.Text,
     "("
     )
     ).Result
     ) + 2
     )
     },
     Left(
     _get,
     Len(_get) - 1
     )
    )
  • taubry Profile Picture
    132 on at

    Thank you so much !

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @taubry 

     

    Thanks for accept my solution, however I just noticed something else.

     

    You want what is INSIDE parentheses I think, right?

     

    I gave you posting how to get it, but problem is that it include Parentheses - so this is still the problem.

     

    Here below is how you can get it without including parentheses in case:

     

    poweractivate_0-1634738053178.png

     

     

    Suppose Label2 with Text "Software (F01)"

     

    Then I have Label3 with this Formula for Text:

    Match(Label2.Text,"\((?<insidepar>.+?)\)").insidepar

     

    Really cool right?

     

    Check if it help in case @taubry 

  • taubry Profile Picture
    132 on at

    Yes, I noticed it after my message, it is indeed inside the brackets that interests me. Thank you, it's pretty cool indeed!

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard