Hi @ChrisChong ,
Oh, I know your meaning.
Since the text " [ Book Order (Name of facility (not for profit), First_Name Last_Name) ]" doesn't have any other characters except "(",")" and ",", so I could only match the string based on these three characters.
I've made a similar test:
1)set the label's Text:
" [ Book Order (Name of facility (not for profit), First_Name Last_Name) ]"
2)get red part:
Substitute(Substitute(Match(Label1.Text,"\(.+\),").FullMatch,"(","",1),",","")
//match string like this: (....),
//using Match(Label1.Text,"\(.+\),").FullMatch could only get this result: (Name of facility (not for profit),
I also need to cut the first "(" and ",". So I use Substitute to modify the result.
3)get blue part:
Substitute(Substitute(Match(Label1.Text,",.+\)").FullMatch,",",""),")","")
//match string like this: ,...)
//using Match(Label1.Text,",.+\)").FullMatch could only get this result: , First_Name Last_Name),
I also need to cut the first "," and ")". So I use Substitute to modify the result.
Here are docs about these two functions for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-ismatch
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-replace-substitute
Best regards,