Re: Notepad new line character

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On 9/13/2007, Gene E. Bloch posted this:
On 9/13/2007, Gene E. Bloch posted this:
On 9/13/2007, Jake posted this:
I have a text file that includes many records of information. In the file there is a "~" which separates the records. I would like to insert a character instead of the "~" which would make Notepad put the information after that on a new line, to clean up the data. Is this possible?

Thanks

Not easily in NotePad or WordPad.

Easily in NoteTab, http://www.notetab.com

The price is right if you download NoteTab Light :-)

You would run a replace-all command, replacing ~ by \r\n -- but be sure to check the "regular expression" box.

"\" is a prefix to indicate regular expression codes and special characters. "\r" is a carriage return and "\n" is a line-feed; the pair forms a windows newline.

It's in the help file, but (I think) hard to find.

NoteTab isn't the only editor that is free and can do the above, it's just the one I use most often and remember the name of ;-)

BTW, this is the wrong newsgroup for this question. It should be in a general Windows newsgroup or a text-editing group.

A couple of other free editors:

EditPad Lite is available at http://www.editpadpro.com

NotePad++ is available at http://notepad-plus.sourceforge.net

All three are vaguely similar, but you might like one better than the others.

Some people like an editor called Jarte. I don't, and anyway, AFAICT it doesn't do regular expressions, in which case it wouldn't solve your problem.

Good thing I keep answering myself, otherwise this thread would be reasonably short ;-)

I looked at those two editors above and discovered that EditPad Lite won't do regular expressions. Help says it is available in the Pro version (which is not free).

--
Gene E. Bloch (Gino)
letters617blochg3251
(replace the numbers by "at" and "dotcom")


.



Relevant Pages

  • Re: Notepad new line character
    ... Gene E. Bloch posted this: ... I would like to insert a character instead of the "~" which would make Notepad put the information after that on a new line, ... The price is right if you download NoteTab Light :-) ... "\" is a prefix to indicate regular expression codes and special characters. ...
    (microsoft.public.windows.mediacenter)
  • Re: Notepad new line character
    ... The price is right if you download NoteTab Light :-) ... You would run a replace-all command, replacing ~ by \r\n -- but be sure to check the "regular expression" box. ... It should be in a general Windows newsgroup or a text-editing group. ...
    (microsoft.public.windows.mediacenter)
  • Re: Editing columns in vi
    ... wrote Michael Zawrotny ... ... Magic-less vicalls for any other editor with decent ... support for regular expression based search & replace facilities. ... I myself would prefer Perlregular expression compatibility ...
    (comp.editors)
  • Re: Regular expression for this?
    ... Basically it needs to Find the word onclick, ... Yes, I know that, given the context, that is a faulty request. ... |> regular expression that will search for and select (in a text editor ...
    (comp.lang.javascript)
  • Re: Regular expression for this?
    ... languages like HTML, and programming languages, are usually not regular ... so they cannot be parsed with one regular expression alone (a ... scripting languages other than the text being replaced constitutes such ... regular expressions that their text editor supports is unknown. ...
    (comp.lang.javascript)