Search replace with line feed?
-
I do web design and sometimes a developer’s files include large .CSS files that are basically one long LONG string with no breaks between elements.
Elements end with " }"
How would I do a search/replace on “}” with } plus a line break?
-
@Paul-Kruger
Regular expressions on (could also useExtended (\n, \t, \0, \x...)
instead)
Find}
Replace with: depends on the line-end character you want.- for windows CRLF, replace
}
with}\r\n
- for macintosh CR,
}\r
- for unix LF,
}\n
- for windows CRLF, replace