Hi. I’ve a bunch of URL rules like these:
array(
'post/<p:\+?\d+>/create' => 'post/create',
'account/<p:\+?\d+>/read' => 'account/read',
'post/<p:\+?\d+>' => 'post',
// more rules goes here ...
)
The problem is that I’ve a regular expression which is duplicated many times. Is it possible somehow to define a <p:\+?\d+> part only once for rules?