I verified the expressions on regex101.com so it should work on UiPath as well.
You have to get the groups. See here on how to access group values : Regex help tutorial MEGAPOST – Making your first Regex post, Reusable Regex Patterns, Regex Troubleshooting, Sample Workflow and more