2013-11-21 20 views

回答

1

$之前刪除.*避免匹配的不需要的URI

^/events/(?<action>[^/]*)/(?<eventid>\d*)$ 
+0

它仍然匹配兩個字符串 –

+0

你現在可以嘗試編輯正則表達式嗎? – anubhava