There are many cases where you need your script to evaluate a string of data, possibly entered by a user. Yes, you could do this by hand, but the Python regular expression processing is extremely efficient and catches all the edge cases that you may not be aware of.