-5

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

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563

1 Answers1

3

Just escape them using \:

\[
\]
Krzysztof Krasoń
  • 26,515
  • 16
  • 89
  • 115