How get required text using regex

HI all i have a string

a = “AAP: DA: codes tagged to the person (0685)(FA01,FA03,FA04,FA05,FS02,FS03,FS07,FS10,US11,US12)”

from the above string i need only this data FA01,FA03,FA04,FA05,FS02,FS03,FS07,FS10,US11,US12

how can i get it please help me

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=\()[^(]*(?=\)$)").Value

Regards,

@Yoichi
hai it was not able to get it

Hi,

Is double quote part of data? If so, the following will work.

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=\()[^(]*(?=\)""$)").Value

Sequence2.xaml (5.0 KB)

Regards,

@Yoichi thank you somuch thank you thank you its working

1 Like

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