I want to get specific data from text

Hi ,

Below is my specific test (Q-00356Open Q-00356 Preview) but i want to get only 00356

How to do , could you please let me know how to handle to get only number value from text.

Thanks,
Rama

Hi @rama_krishna_Rao

You can use Regular expressions to extract the number.

Input = "Q-00356Open"

Output = System.Text.RegularExpressions.Regex.Match(Input, "\d+").Value.Trim()

Regards

Thank you so much @vrdabberu it’s working

1 Like

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