Regular expression to replace contents between brackets

  • Thread starter Thread starter SamIAm
  • Start date Start date
S

SamIAm

Hi

I want to replace the contents between brackets i.e.
string text = "this is a sentence (replace me)"'


Thanks,

S
 
Hi Sam,

You can match the content within brackets with a construct like that:

\(([^\}]+)\)
 
Back
Top