|
|
 |
Published by Pete Goodeve
Click here for more information about this publisher...
|
 |
|
Date Posted: |
March 17th, 2003
|
|
|
Last Updated: |
January 23rd, 2006
|
|
|
License: |
Other Open Source License |
|
|
Downloads: |
347 total; 1 recently |
|
|
Page Views: |
11,823 total |
|
|
User Rating: |
awaiting 10 votes |
 |
|
Jump to the Downloads section |
|
 |
 |
About matt:
a command-line driven, regular-expression matcher with a difference.
matt is a simple, old-fashioned, command-line driven program, but I believe it is fairly unique in relation to commonly available tools, such as grep and awk, with somewhat similar functions. Like them, it locates segments of a text by matching with regular expressions. Unlike them, it is not 'line-bound': an expression 'locates' exactly the text that it matches, rather than the line that contains it. The matched segment may be part of a line, or extend over several lines.
That seemingly minor difference in strategy means that matt can handle tasks that are difficult or impossible with the other programs. It can pull entire paragraphs that match some desired criterion out of a text, locate elements within an HTML or XML file, even modify desired text segments while outputting the rest unchanged. It also handles UTF-8 as standard. I find that the
majority of my scripts have a matt command line in there somewhere!
Source for matt and some example scripts are now available at:
jwgibbs.cchem.berkeley.edu/pete/matt.html.
The app should compile staightforwardly on other posix systems.
|
 |
Like this app? Have questions or comments?
Why not tell the author? Use the "e-mail publisher" link to get in touch with the publisher; they usually love getting feedback.
|
|
|