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

15930Brooding about ^$GetDocMatchAll

Expand Messages
  • jonas_ramus
    Jan 8, 2007
      According to the Help File, ^$GetDocMatchAll "finds all matching
      strings based on the supplied regexp pattern".

      Look at the words: Hickory Dickory Dock

      When executing...

      ^!SetListDelimiter ^p
      ^!SetArray %Text%=^$GetDocMatchAll(".{0,3}kory.{0,3}")$
      ^!Toolbar New Document
      ^!InsertText ^%Text%

      I would expect to get...

      Hickory Di
      Dickory Do

      Actually, the result is

      Hickory Di
      ckory Do

      In the second string, I'm missing the "Di". When executing...

      ^!SetArray %Text%=^$GetDocMatchAll(".{3}kory.{3}")$

      the second string has vanished at all. Did I missunderstand that
      command? Thanks for any help.

    • Show all 35 messages in this topic