views:

30

answers:

1

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

I tried the pathPattern of [0123456789]*, but that didn't work. Is this possible to do?

A: 

The pathPattern is not a full regex. Rather, it uses a "simple glob", where * means zero or more of the immediately preceding character -- in your case, zero or more ] characters.

Off the top of my head, I do not see how you can convert your desired pattern into something that can readily match a "simple glob".

CommonsWare