Tag: regular expressions

Text-laundering (Working With Text 3)

Text-laundering (Working With Text 3)

Ever copy and paste something that should be a solid paragraph of text only to have it end up looking a mess? You could fix it using Regular Expressions, or if you prefer not to have to muddle around with code, there are a number of tools out there which can automate this kind of text cleanup for you. {+}

RegEx 101 (Working With Text 2)

RegEx 101 (Working With Text 2)

Let’s say that there was a revolution in your field site and the “Feline Republic” is now the “Canine Republic.” This is an easy problem to solve. You just open up your word processor and use the find and replace command, replacing every instance of “Feline” with “Canine.” But what if the canine revolution also imposed new rules for personal names, reversing the order of first and last names throughout the republic? That becomes a bit more difficult. If your {+}