Usin \f in search/replace
Posted: Mon Jul 06, 2009 11:21 pm
Hello!
I have a bunch of text files with multi-page documents having xPage [Pagenumber] line in front of each page. I need form feed character between the pages. I'm trying to replace \nxPage (that will search for beginning page marker but skip the very first page in the document) and replace it with \f\nxPage. Again:
Search: \nxPage
Replace: \f\nxPage
It works great in TextPad but I cannot process more than ~60 files at a time. WildEdit though creates .txt-00 files for files that match search criteria and DOES NOT insert form feeds.
I don't see any option to change the behavior so I guess it's just a bug.
EDIT: .txt-00 actually backup files and there are edited .txt files.
The problem is that the replaced text looks like \f\nxPage instead of form feed and a new line. Surprisingly the new line before xPage marker is not deleted and the marker for the very first line is not replaced
I have a bunch of text files with multi-page documents having xPage [Pagenumber] line in front of each page. I need form feed character between the pages. I'm trying to replace \nxPage (that will search for beginning page marker but skip the very first page in the document) and replace it with \f\nxPage. Again:
Search: \nxPage
Replace: \f\nxPage
It works great in TextPad but I cannot process more than ~60 files at a time. WildEdit though creates .txt-00 files for files that match search criteria and DOES NOT insert form feeds.
I don't see any option to change the behavior so I guess it's just a bug.
EDIT: .txt-00 actually backup files and there are edited .txt files.
The problem is that the replaced text looks like \f\nxPage instead of form feed and a new line. Surprisingly the new line before xPage marker is not deleted and the marker for the very first line is not replaced