Get values separately with regular expression

Hi @shaik.muktharvalli1

You can try this way, variable type is string

System.Text.RegularExpressions.Regex.Match("Inputstring","(\d+)\s(\d+)").Groups(1).Value

Output = 530

System.Text.RegularExpressions.Regex.Match("Inputstring","(\d+)\s(\d+)").Groups(2).Value

Output = 01

image

Regards,
Gowtham Krishnan

1 Like