Hi there,
How can I escape a forward slash in the custom regex validation for text fields?
Back slash doesn't work and it is considered as a character.I have also tried double back slash with no luck. Tried to use different string delimiters {} ## in order to use the forward slash as a character with no more luck.
I see a very odd behaviour where if I type as regex
Code:
/https:\/\/www.facebook.com/
the string that gives a match is:
Code:
http:\/\/www.facebook.com
hence why I said that the backslash was being considered as a character. I didn't escape the dots because I was seeing the same behaviour from the back slash and I realised I was able to achieve a match with no escaping.
Something odd is going on in CB since I have been trying regex validation for a while with expressions that work and match the expected strings in reliable online regex simulators but they don't work in CB.
But I'd be happy if I can escape or match the forward slashes in any way since I seem to be able to match the rest after throwing the regex book out the window and doing fair amount of trial and error
thanks