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

20172Re: ^$StrCount

Expand Messages
  • ebbtidalflats
    Dec 31, 2009
    • 0 Attachment
      Happy New Year

      Check out the help on ^$GetDocMatchAll

      Youu can create a regular expression to match the different words you want to count, apply it to a document, and capture it into an array.
      Then just extract the array size. Something like:

      ^!SetArray %matches%=^$GetDocMatchAll("(security)|(data)|(network)")$
      ^!Set %count%=^%matches0%



      --- In ntb-clips@yahoogroups.com, "c.brito78" <c.brito78@...> wrote:
      > How is possible (if) to count several words, without using several StrCount? Like:
      > ^$StrCount("security OR data OR network";"Str org";CaseSensitive;WholeWord)$?

    • Show all 3 messages in this topic