Click it and a list of common GREP commands appears with examples and a description. The first is a GREP Cheat Sheet button in the Find (and Replace) dialogs. But BBEdit 13 adds two new features that make using GREP almost as easy as using Search & Replace in other apps. In the past, I would have to search the web for the proper GREP syntax and then fine-tune it by trial-and-error. In English that would read: “Find every Space character repeated one or more times and replace it with one Tab character.” Word processors (and Ulysses) offer no easy way to search for multiple spaces in a row and replace them in BBEdit, I just type a space followed by a + (“ +”) for the Search pattern and “/t” for the Replace pattern. For example, I often need to change a bunch of consecutive spaces to a single Tab character. Ulysses offers a decent enough search and replace function, but when things get complicated, I turn to BBEdit and craft a GREP query. (GREP stands for G lobally search a Regular Expression and Print, or Global Regular Expression Parser, depending upon whom you ask.) For example, BBEdit has included powerful GREP searches for as long as I can remember. Why? Well, while Ulysses is great at letting me compose text, it’s not really designed for sophisticated text manipulation and searches.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |