using regular expressions here. @adamrp, do you have any quick ideas on how best to form them?