I’m trying to remove excess whitespace via a regex replace:
Regex101 link with example input and desired output: regex101
Output: same as input
What could I be doing wrong?
I’m trying to remove excess whitespace via a regex replace:
Regex101 link with example input and desired output: regex101
Output: same as input
What could I be doing wrong?
Apparently, it was taking issue with the ‘m’ flag. Luckily, I don’t need it.
\n\n
also needed to be replaced with newline
newline
Welcome to the Make community!
Close but not quite. The replace function can only take a single flag, which is a bug that I reported 2 years ago but it isn’t fixed yet.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Well that is disappointing.