A simple regular expression API that is portable across all platforms