How to capture specific string part

How to capture specific string part from string e.g E06:EP4 i want to extract EP4 and EO6 is dynamic value. Using string manipulation or regex

Hi @Ajij_Mujawar ,

It seems that you could perform a Split and take the first and second splitted items. Check with the below expression :

Split("E06:EP4",":")(0)
Split("E06:EP4",":")(1)

If the above is not providing the results as expected, we would ask you to explain your details in a bit more detail and what did you actually mean by a dynamic value, will there be multiple values present separated by a colon (:) ?

1 Like

HI @Ajij_Mujawar

Checkout this expression

System.Text.RegularExpressions.Regex.Match(InputString,"[A-Z]+\d+").Tostring

Regards
Sudharsan

1 Like

Thanks Arpan,
Yes the values are changing separated by : and my requirement to extract the values for (1)

1 Like

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