router with xregexp and reverse