Menu

How to: copy lines by regex using TextFX Viz

2008-03-10
2012-11-13
  • Nobody/Anonymous

    I just ran into this long-time-ago message when doing some lookups for regex handling.

    It's quite interesting that this hasn't been brought up, mentioned, or referred to the last year. I, for one, can't recall. So here's just a reminder.

    This thread and particular message simply demonstrate how a selection (copy) can be made out of a document by showing or hiding lines containing a certain regular expression or regex.

    Thread "search and..." on the Help forum:
    http://sourceforge.net/forum/forum.php?thread_id=1621190&forum_id=331754

    Message "RE: search and...":
    http://sourceforge.net/forum/message.php?msg_id=4054972

    Contents below edited for general use:

    RE: search and...
    By: Chris Severance (severach) - 2006-12-11 19:48

    TextFX Viz can do this for you.

    First, copy the regex to the clipboard.

    Turn on TextFX Viz Settings | Viz Text Search Regex:
    Menu____ : TextFX
    Submenu_ : TextFX Viz Settings
    Option__ : Viz Text Search Regex (check this option)

    Then select TextFX Viz Show / Hide Lines with(out) (Clipboard) text.
    Menu____ : TextFX
    Submenu_ : TextFX Viz
    Options_ : Hide/Show Lines with(out) (Clipboard) text

    Tools to copy (in)visible lines to the clipboard are listed below these options, in the third and last group.

     
    • Fool4UAnyway

      Fool4UAnyway - 2008-04-20

      There are two tools I use to find (non- and) regex matches in files: Agent Ransack and TextCrawler.

      Agent Ransack can be used to find files by pattern or regular expression.
      It can also search inside files for (non- and) regex matches.
      Agent Ransack can be used to extract all _lines_ containing matches.

      TextCrawler can be used to directly extract all (non- and) regex _matches_ at once.
      You can also replace matches in files, or simply search for (the files conatining) them.

      See the original message for a short description and list of features of both tools and links to their websites:

      "Tools to find and copy regex matches in files" (New)
      By: Fool4UAnyway (fool4uanyway) - 2008-04-20 01:49
      http://sourceforge.net/forum/message.php?msg_id=4915704

      in the thread

      "copy to clip all text matching regex pattern"
      http://sourceforge.net/forum/forum.php?thread_id=1964719&forum_id=331754

      dealing with the question how to extract only all matches instead of complete lines.

       
      • Fool4UAnyway

        Fool4UAnyway - 2008-04-23

        > in the thread

        "copy to clip all text matching regex pattern"  (Help forum)
        http://sourceforge.net/forum/forum.php?thread_id=2012623&forum_id=331754

        This is the correct thread. The link in the previous message is the one of this thread.