i need help with a java regular expression, I need to accept HTTP request at these paths:
categories
categories/533446dd2cdc5af82a027d9e,
533446dd2cdc5af82a027d9e stay for @Path param called "id";
I'm working on this regular expression:
categories(\/)?([a-z0-9]{0,25})?
but it's not working, can you help me? thanks guys :)
Have a look at the following example :
Output :