DR-117 Optimize XUri parser

Ticket: https://youtrack.mindtouch.us/issue/DR-117

Added URI_REGEX back again.