Even though it'll take a while to digest this, even after my first reading, it prompted me to have a go as a total regex noob.