I'm trying to escape the backslash character in my regex.
Validators.pattern('^[^\\]*$')
but it return me this error:
ERROR SyntaxError: Invalid regular expression: /^[^\]*$/: Unterminated character class
I'm pretty sure my regex is good and I didn't see a solution in others similar topics.