0

I want to generate a regex that will allow the exact string "[TEST]". What is the required regex?

Thanks.

Cœur
  • 34,719
  • 24
  • 185
  • 251
IsaacE
  • 305
  • 1
  • 9

1 Answers1

1

The correct way to do this is as follows:

"\\[TEST\\]"

→ double escape each square bracket

ssc-hrep3
  • 13,236
  • 4
  • 42
  • 82
IsaacE
  • 305
  • 1
  • 9