The PCRE version used in the native RegEx class does not support values of \x{NN} greater than FF, nor the Unicode tokens (not used here). The more modern implementation provided by the MBS plugins supports both.
It’s not a factor here, but the MBS implementation is also substantially faster for repeated matches and provides other features missing from the native which is why it will be the engine behind RegExRX starting with the next version.
Right, but I did say change the UTF ranges to fit. I did that, and the pattern seems to work just fine for all the URLs (and anti-URLs) I’ve tested it on.
I went through this tread and tested the suggestions. None worked satisfactorily to validate a url on syntax.
It’s on my list to get informed on regular expressions syntax, but for now I just need a sample that at least works for 90%.
Hope somebody can help me here building the nearly perfect url-validation function.
I have:
[code] Function UrlCheck(Url as String) As Boolean
// check url via regular expressions
Dim re As RegEx
re = New RegEx
Dim rm As RegExMatch
Dim strUrl As String = Lowercase(Trim(Url))