0

I am trying to create a regex for checking these 7 characters ('/', '', '[', ']', '', ':', '?') in any order as long as there is at least one character exists in the string. I tried using the Regex Generator and it output this expression :.[.].\/*? but it doesn't work.

1 Answers1

0

Try this:

/[\[\]\/:?'"]/g

Regex101

Hope this helps!

Kiran Parajuli
  • 820
  • 6
  • 14