added regex convenience functions