-5

I want to allow [] these brackets in a name field using regex. Please help me on this.

Wiktor Stribiżew
  • 561,645
  • 34
  • 376
  • 476

1 Answers1

3

Just escape them using \:

\[
\]
Krzysztof Krasoń
  • 25,163
  • 16
  • 85
  • 109