I feel like this is simple but I can't get it to work...
I am using Ui-Router 2.11 which includes optional parameters with regex expressions.
I have this url which works
'/event/{eventId:[0-9]}'
it filters out everything that isn't numeric, however it only works for 1 character of input (so only 0 through 9).
I want to replace it with an expression that checks to make sure all characters in the input are numeric so I can have any input as long as it's all numbers.
I tried using expressions from this thread
'/event/{eventId:^[0-9]+$}'
but it doesn't work. The other examples include forward slashes which I can't use(via the warning in the ui-router docs). This feels like it should be incredibly simple, what am I doing wrong?