Regex expression Usage

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

Hi @Tanmay_V_Chetule

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,“[]”,“”)

@Tanmay_V_Chetule

grafik

try this regex expression

System.Text.RegularExpressions.Regex.Replace(input,"[[\]]","")

output:-

@Tanmay_V_Chetule

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