Hello Team,
need Regex for below string
String value str=" Barbara Allen (Future Resident) "
Required out put as = Barbara Allen
note - that spaces and names are changes dynamically
please help me on these regex
Thanks in Advance
Regards
Sai
Hello Team,
need Regex for below string
String value str=" Barbara Allen (Future Resident) "
Required out put as = Barbara Allen
note - that spaces and names are changes dynamically
please help me on these regex
Thanks in Advance
Regards
Sai
Please use the below syntaxes:
Assign activity -> str =" Barbara Allen (Future Resident) "
Assign activity -> Output = System.Text.RegularExpressions.Regex.Match(str, "[A-Za-z ]+(?=\()").Value.Trim()
Both the variables are of DataType System.String
Regards