refactor uri check regex