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

2975Re: [NTO] Extract Text

Expand Messages
  • Wayne VanWeerthuizen
    Apr 7, 2002
      On Sun, 07 Apr 2002 19:31:41 +0500, you wrote:

      >Thanks for a very quick and instant reply.
      >But GREP returns lines containg the pattern while I want words matching the
      >given pattern. Any suggestion?

      Here is an example of how to do this using Perl and NoteTabs ^!RunPerl
      command. Remember to set $find = to your own regular expression.

      ^!Toolbar "Copy All"
      ^!Toolbar "Paste New"
      ^!RunPerl "MyPerlScript"



      $find = "[a-z]*ee[a-z]*";

      while (<>) {
      while ( m/\b($find)\b/ig ) { $found{"$1"}=1 };

      foreach $key (sort keys %found) { print $key, "\n" };
    • Show all 5 messages in this topic