Notepad++ Form-Feed Character
-
How can I put a Form-Feed Character (\f or ASCII character 012) into a file using find and replace?
I work with data files and occasionally, they do need to have a Form-Feed Character. Without the boring details, from time-to-time I need to do a find at replace to change a pattern of characters into a Form-Feed. Notepad++ does recognize the character when it is already in the data, but it does not recognize the ‘\f’ escape version of the character. So what is another way to do this?
NOTE: This has nothing to do with printing and everything to do with taking a data file from an old system and feeding it into a newer system in a situation where I don’t have access to any real language. (No, not even Python or R. Don’t bother asking because I won’t bother telling.) But, strangely enough, I do have Notepad++.
-
In regular expression mode,
\fwill enter ASCII 12. So check the Search Mode = Regular Expression to get that behavior when you replacemode before after normal 

extended 

regular expression 

see:
https://npp-user-manual.org/docs/searching/#regular-expressions
https://npp-user-manual.org/docs/searching/#control-characters
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login