⌘ Harnessing the power of RegEx across multiple apps
RegEx is a powerful tool for finding and processing text. While it’s a full programming language, there are some basics that go a long way. Mastering just a few commands will save hours of time. Almost every text editor on the Mac supports RegEx. My main use is with TextSoap, Keyboard Maestro, and the shell. To start, I use TextSoap with RegEx to delete lines of text that match my criteria. In output files, I remove lines with INFO and Debug. In other files, I highlight Error or Warning. The Keyboard Maestro search/replace modules support RegEx, so you can parse clipboard text or variables. As a simple example, I copy Jira ticket titles, remove line breaks and replace them with ‘ – ‘. You don’t have to be an expert in RegEx to save yourself time and believe me, I’m no expert. However, there are plenty of tools and resources to help. Stackoverflow is alive with RegEx questions and answers. […]
Recent Comments