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

20700Re: [Clip] regex to remove ties

Expand Messages
  • Axel Berger
    May 24, 2010
    • 0 Attachment
      Axel Berger wrote:
      > This seems to work as requested:

      The "donext" bit is superfluous here, so let's drop it:

      ^!Find "[-;] ([0-9T]+)\. " RAST1
      ^!IfError END
      ^!Set %found%=^$GetSelection$
      ;^!Continue ^%found%
      ^!IfTrue ^$IsNumber(^%found%)$ loop
      ^!If "^%found%" = "T" SKIP
      ^!Set %place%=^$StrDeleteRight("^%found%";1)$
      ^!InsertText ^%place%
      ^!Goto loop

    • Show all 13 messages in this topic