В приведенном ниже формате есть несколько URL-путей:
Код: Выделить всё
demo.com/log/
demo.com/logData1
demo.com/logSub2
and many more as such
Код: Выделить всё
How should the regex look like if it should not match "/log/"
I tried to allow android app to open only few URLs which has URL path starting with '/log' but not '/log/'. But even after using '^/' in the regex, it is still matching '/log/'
Источник: https://stackoverflow.com/questions/781 ... sing-regex
Мобильная версия