AndroidPattern intent filter path numerical match

I am adding an intent filter to my Android app and want it to catch requests that go http://www.somedomain.com/[numericValue] . I just want to catch it if the path is numeric, but if it has text, I don't care.

I tried pathPattern from [0123456789] *, but that did not work. Can this be done?

+3
source share
1 answer

pathPatternnot a full regex. Rather, it uses a β€œsimple globe,” where it *means zero or more of the immediately preceding character β€” in your case, zero or more characters ].

, -, " ".

+1

Source: https://habr.com/ru/post/1763155/


All Articles