I have two URLs types, (TYPE A)
/items
Or /items/XXXX with a trailing number (TYPE B)
/items/187
/items/12831
I would like to know how to detect if the URL is type A or Type B
if (TYPE A) ... else if (TYPE B) ....
Any suggestions for making this happen? Do I need a regex?
thanks