Added skeleton for regex checks
Prepare to change the API to use explicit callbacks