-4

I currently use a regex

\\\[(.*)\\\]

so if I would try to match [] it will work. But what I want is so it requires at a minimum one character between [ and ] to match my regex, but how?

Thanks!

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112

1 Answers1

0

Before matching (.*). Do a match on [^]] to match something other than the closing ].

Mike Wodarczyk
  • 1,247
  • 13
  • 18