I'm currently trying to create a regex that will find this pattern /- - [/ . However, since [ is a special character, I get this error:
premature end of char-class: /- - [/ (SyntaxError)
I know this happens because the compiler expects [ to regex to close, but I need it to match this in my template. How can i do this?
source share