Loading ...
Sorry, an error occurred while loading the content.

6595Re: Need Reg Exp

Expand Messages
  • Hugo Paulissen
    Jun 1, 2005
    • 0 Attachment
      >
      > How can I remove the EOL characters which are NOT followed by three
      spaces
      > without removing the rest?
      >
      > IF ( <EOL> AND NOT <EOL + ^Sp^Sp^Sp> ) THEN set EOL ==
      <^Sp>;
      >
      > Thanks, Folks
      >
      > Mike Hopkins
      > ironmike (AT) inav.net

      Mike,

      You could try it with

      \n{[^\s][^\s][^\s]} in the find box

      and

      \n\1 in the replace box

      Test it first with a copy of your file, I only tested it on a a
      couiple of lines...

      Explanation:
      \n = newline

      {everything in brackets} = restored by inserting \1 in the replace box

      [^\s] = any character but no space

      Hugo
    • Show all 5 messages in this topic