Given the following regular expression:
\/page1\/id\/(.*)\/type\/(.*)\/$
Which is to match the following URL path (and works):
/page1/id/331/type/test23/
How can I modify the regex to still match with the last slash missing, i.e:
/page1/id/331/type/test23
Thank you!