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

23717Re: Get Selection and Regex

Expand Messages
  • Eb
    Mar 23, 2013
      Hi Axel,
      Your expression inside the square brackets comes across as containing a special character, which requires escaping -- this may be because of the two-way transmission via the net, or not.

      Anyway, you can test this on your own machine by typing the pattern (for example ["'`"]) into a document, setting the menu find to regexp, exit find, selecting the pattern, and invoking the menu find again.

      The pattern will be imported into the find window, and have all special characters escaped (telling you if your pattern might have a worm in it).



      --- In ntb-clips@yahoogroups.com, Axel Berger <Axel-Berger@...> wrote:
      > How do I write ^$GetSelection$ in Regex?
      > It seems this
      > ^!If ^$StrPos("[¨´`˜]";"^$GetSelection$";R)$>0 END ELSE NEXT
      > does not work and I believe it's the Get Selection at fault.
      > Danke
      > Axel
      > --
      > Dipl.-Ing. F. Axel Berger Tel: +49/ 2174/ 7439 07
      > Johann-Häck-Str. 14 Fax: +49/ 2174/ 7439 68
      > D-51519 Odenthal-Heide eMail: Axel-Berger@...
      > Deutschland (Germany) http://berger-odenthal.de
    • Show all 3 messages in this topic