Tag: regular expressions
-
Replacing Paragraph Breaks with Double Paragraph Breaks in LibreOffice Writer
Here’s the problem I was facing. I had a document with a lot of text that I had to analyze. The text had been copied from a spreadsheet and pasted without formatting to get rid of the cells. As a result, there was a single “return” or “paragraph break” between each passage of text. That…
-
GPRENAME – removing text up to a space using regular expressions
For a recent project, I came into possession of hundreds of photos, each of which was named according to the settings the person who take the photo with their phone had in place but ended with ” – FirstName LastName.jpg.” I wanted to keep the users’ names, but everything before that could go. With hundreds…