Need to split text using comma but ignore comma inside the brackets

Need to split text using comma but ignore comma inside the brackets
For Eg:
Input - "Welcome,to,uipath(forum,help),community)
output-
Welcome
to
uipath(forum,help)
community

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Matches(yourString,"([^,\(\)]+(\(.*?\))*)+")

Sequence.xaml (6.7 KB)

Regards,

Thanks yoichi, Its working fine. got the required output

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.