URL Validation
I am trying to get a custom URL pattern to work: 'url' : 'required|pattern: [^((http|ftp|https):\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?$]',
BUT I keep getting this "invalid expression" error. Will this pattern not work with your validation manager?
@mengi23 your expression has extra ')'
and instead of it, use this one
[^((http|ftp|https):\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+)([\w.,@?^=%&:\/+#-]*[\w@?^=%&\/+#-])?$]
Humm... I don't think my expression was wrong. But I replaced with yours it still doesn't like that first char?
AddResourceComponent_Host.ngfactory.js? [sm]:1 ERROR SyntaxError: Invalid regular expression: /^ [^((http$/: Unterminated character class
at new RegExp (
Looks like a bug, unfortunately I am not able to test it, can you try pattern without this character: | and let me know if you are still seeing the same problem or no.
Thanks