I used this extension which allowed me to use a regex. It also verified all the changes before committing them, where hand-jamming sqlite wouldn't.