Hi to all!
I'm trying to check if this regex matches the text, but I always get false.
Regex: (.*)[\/\\]
Text: /book/assets/img/logo.png
If I try to run this code I get false
I also tried this
But on regex101 works... also here: https://b4x.com:51041/regex_ws/index.html
Maybe I forgot something...
I'm trying to check if this regex matches the text, but I always get false.
Regex: (.*)[\/\\]
Text: /book/assets/img/logo.png
If I try to run this code I get false
B4X:
fileStr = "/book/assets/img/logo.png"
Dim dirFound As Boolean = Regex.IsMatch($"(.*)[\/\\]"$,fileStr)
Log(dirFound)
I also tried this
B4X:
fileStr = "/book/assets/img/logo.png"
Dim dirFound As Boolean = Regex.IsMatch2($"(.*)[\/\\]"$,Regex.CASE_INSENSITIVE,fileStr)
Log(dirFound)
But on regex101 works... also here: https://b4x.com:51041/regex_ws/index.html
Maybe I forgot something...