I have a string variable - [Example]
I need to remove the brackets ‘[’ and ‘]’ so that the output is ‘Example’
Please help me with the regex expression for the same.
Thanks in Advance
I have a string variable - [Example]
I need to remove the brackets ‘[’ and ‘]’ so that the output is ‘Example’
Please help me with the regex expression for the same.
Thanks in Advance
Try this
System.Text.RegularExpressions.Regex.Match(Input,"([A-Z])\w+").Value
Hope this helps!!
You can try expression
Input = [Example]
System.Text.regularexpression.regex.replace(InputText,“[]”,“”)

try this regex expression
System.Text.RegularExpressions.Regex.Replace(input,"[[\]]","")
output:-
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.