Adding regex manipulation from the cpta.db.