So how does it work? If you’ve used the Sublime console before, go ahead and install the package. RegReplace is a free package which allows you to define common regular expressions – which it calls rules – and call them with console commands. But what if you use the correct editor, Sublime Text? In that case, RegReplace is your saviour. So if you’re the kind of person who uses BBEdit, or some other inferior text editor, you can stop reading now. (It won’t help you if you’re trying to type them on a French keyboard, however…) As Dave helpfully pointed out the other day, saving regexes is baked into BBEdit, in a handy drop-down in the search In there’s a save command right in the regex window. Of course, if you’re Dave Cramer and you use BBEdit, you already know this. I’m here to tell you that there’s a better way. Maybe they’re in your head, maybe they’re written down in a document somewhere, maybe you write them afresh every time (because remembering regex syntax is super fun, right?) If your workflow is anything like mine, you have a toolkit of regular expressions you use to clean up text and markup. This is a guest post from Simon Collinson ( a digital editor at Canelo Digital Publishing, where he corrects all the OCR.
0 Comments
Leave a Reply. |