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

[Clip] Regexp again

Expand Messages
  • Claes Gauffin
    Hi all, It seems that a global find&replace with a regexp in the find string suffers from the same problem as the count function. This would be an equivalent
    Message 1 of 1 , Apr 19, 1999
      Hi all,
      It seems that a global find&replace with a regexp in the find string
      suffers from the same problem as the count function. This would be an
      equivalent make-shift solution:


      H="Find&Repl w regexp"
      ^!IfFalse ^$IsWordWrap$ Skip
      ^!Keyboard CTRL+W
      ^!Jump TEXT_START
      ^!set %string%=^?[Search string]
      ^!set %repl%=^?[Replace with]
      ^!set %regexp%=^?[Reg exp==Yes^="R"|_No^=""]
      :Search
      ^!Replace "^%string%" >> "^%repl" TS^%regexp%
      ^!IfError End
      ^!GoTo Search

      Regards /Claes

      ------------------------------------------------------------------------
      eGroup home: http://www.eGroups.com/group/ntb-clips
      Free Web-based e-mail groups by eGroups.com
    Your message has been successfully submitted and would be delivered to recipients shortly.