I'm trying to define a route in a Phalcon Micro App, but can't figure out how to pass the global flag to the regular expression. Here is my route
/api/v1/product/detail/{sku:([\w\d]+-?)*[\w\d]*}
Expecting both of these to match, however the later requires the global modifier to match.
- 8Z-WEXN-CG0H
- 025-3bags
How can I specify a flag in the regular expression? I did not see this specified in the documentation.