Trie based router with expression support