Implement regex triggers. Closes #1