In this action-packed show I tell you the story of adding chapter markers to the NosillaCast in a three part continuation series (hopefully you can see them now?) interspersed with two reviews from Bart. He tells us about how he’s using Hazel now to send things to Yoink and he explains why CardHop makes Contacts useful again. Steve wrote to Craig Federighi and actually got a response and 30 seconds of fame on Apple sites. And we’ve got a PSA about a phone scam using an Apple Store’s real phone number.
In my post about using regular expressions to find matches in a text file, I promised to tell you about the two applications I used to help me write my regex. By the way, Regex is what the cool kids call Regular Expressions.
Let’s state the problem to be solved first. If you have a text file where you want to change something that’s repeated throughout the file, it’s pretty easy to do a search/change all. We do it all the time in text editors. But what if you have a text file that is repeatedly generated and always has the same thing wrong with it? Maybe it’s a date in the wrong format. Or maybe an online system hasn’t been updated with your new company name. Or what if instead of changing the text, you just need to know what the text actually says? Let’s say it’s a date in a document and you want to write a script to change the name of the document to include the date? All of these examples are a great place to try out regex.