add some additional regexp/string parsing utils