Re: Get Selection and Regex
- 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 firstname.lastname@example.org, 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.
> 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
- Eb wrote:
> and invoking the menu find again.With the appropiate setting, which I don't have, but just pasting it in
> The pattern will be imported into the find window,
with Regex set does the same. All good advice for future problems,
thanks, but as my second post said, that line was not where the bug sat.