Shawn's work. Regular expression checks.