Don't underestimate the convenience and usefulness of regex. If you don't understand how it works, learn it. You wouldn't regret it if you did so.