How Do I Use GREP RegEx to Remove Newline Characters (like CR, LF)?

Hey @project_guru,

A lot of people feel that way when they start fooling with regular expressions.

Me included.  :sunglasses:

See this section of our wiki page on regular expressions (and below) for a decent listing of resources.

https://wiki.keyboardmaestro.com/Regular_Expressions#Books

If you regularly use BBEdit and/or TextWrangler then you might want my BBEdit Cheat Sheet too:

-Chris

@project_guru, I hope you don't mind that I have revised your topic title to better reflect the question you have asked.

FROM:
GREP not catching "^" beginning of line

TO:
How Do I Use GREP RegEx to Remove Newline Characters (like CR, LF)?

This will greatly help you attract more experienced users to help solve your problem, and will help future readers find your question, and the solution.

2 Likes

Hi Chris, it's very nice of you to share your cheat sheet. Thanks!

I've created a KM action that will open its URL from the Status Menu :sunglasses:

2 Likes