Hi, I would like to split the text:
FirstName LastName (ID)
I need the value that is in parentheses. How can I do this to separate only this part into a variable? Thank You
Hi @sullivanne
Input = "FirstName LastName (ID)"
Output = System.Text.RegularExpressions.Regex.Match(Input,"(?<=\().*(?=\))").Value.Trim()
Regards
Hi @sullivanne
Check the below image for better understanding:
OR
Input = "FirstName LastName (ID)"
Output = Input.Split(" ")(2).Replace("(","").Replace(")","")
Hope you understand @sullivanne
Regards
Variable.Split({“(”},StringSplitOptions.None)(1).Trim.Split({“)”},StringSplitOptions.None)(0)

