The Regex is probably a lot cleaner.  Lets optimize through caching the result.