Menu

Yep - newlines again

2008-01-22
2012-11-13
  • Nobody/Anonymous

    So there is no way for me to do a simple regex and cut off the newlines then?

    For instance I'm looking for five digit numbers on their own line and want to remove the newline at the end of it.

     
    • Nobody/Anonymous

      Ahhhh, yes. I seem to remember doing something like before. Thanks.

       
    • pshute

      pshute - 2008-01-23

      I'm not sure if it can be done in one step.  Use method 1.2 at http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo to add some unique string between the numbers and the newline, e.g. ~~~.  Then use method 1.3 to remove the unique strings and the newlines.