PowerGREP Benefits: Search, Replace and Collect Information across Files and Fold...
Page 1 of 3
Search, Replace and Collect Information across Files and Folders on Your PC and Network
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information
What You Can Achieve with PowerGREP PowerGREP offers you a Buy & Download PowerGREP Now wealth of features that will Only US$ 149 come in handy in many Windows 98, ME, NT4, 2000, XP and Vista. situations when you want 100% satisfied or money back to find information, update free trial download or convert files, or extract useful information and statistics. PowerGREP is a knowledge worker's Swiss army knife.
Find Files and Information Quickly search across files, folders and archives on your computer or network. Search for words, phrases or binary data. Or use regular expressions to describe the form of what you're looking for, and let PowerGREP find the actual text. Specify as many search terms as you want. Inspect the context of individual search matches, or group identical matches together.
Sequences File Sectioning
Maintain and Convert Files with Search and Replace
Extra Processing Easier to Use File Selector File Editor Library
Search and replace through heaps of files without opening them first. Preview the replacements without modifying any files. Make complex replacements or conversions with regular expressions. Replace or revert individual search matches at your leisure. Work safely with flexible backup and undo options.
Backup & Undo
Examples
Extract and Collect Information and Statistics
Windows grep File Formats Press Resources Newsletter
Gather statistics and extract data from files, archives and logs. Collect search matches into one or more new files. Use regular expressions to describe the form of the text you want to extract, and let PowerGREP collect all or part of the match. Sort matches, and group identical matches and count them, to produce informative statistics.
Version History Affiliates
PowerGREP's Unique Abilities PowerGREP has a wide range of capabilities you won't find in any other Windows grep tool. While you will use some of these features only occasionally, they will surely save you a lot of time and tedious manual editing on many occasions.
http://www.powergrep.com/benefits.html
2006/12/18
PowerGREP Benefits: Search, Replace and Collect Information across Files and Fold...
Page 2 of 3
Regular Expression Sequences Apply any number of search terms of regular expressions sequentially or concurrently. Complex search and replace operations often require multiple steps. Use PowerGREP to execute as many steps as you want in a single operation. Run the steps concurrently (search matches won't overlap), or sequentially (replacements cascade onto the following steps). Save all steps into a single PowerGREP Action for instant reuse. Similarly, while searching or collecting data, use a list of search terms or regular expressions to find files matching different criteria, or to extract disparate information from each file.
Slice and Dice Files Any Way You Want Limit your search to specific file sections. When updating web sites, limit the search and replace to HTML tags, or even specific HTML tags, or alternatively, skip HTML tags. When programming, search through only comments and/or strings, or alternatively, skip comments and/or strings. Use as many regular expressions as you want to section files. Split files into records before searching. Instead of searching whole files at once, or line by line, split files into whichever record or block structure the files are formatted with. Specify record delimiters, or use regular expressions to match the records themselves. When sectioning files or splitting them into records, you can work with the sections as a whole. Require search matches to span complete sections, collect or replace whole records, or return those records in which the search terms cannot be found.
Adapt Search Matches before Substitution or Collection Post-process replacement text or text to be collected. Often, a search match isn't in the format you want it to be. PowerGREP's unique "extra processing" feature allows you to perform additional search and replace steps on each search match. E.g. when processing web logs, replace URL-encoded characters when extracting search engine keywords from referrer URLs.
Work Safely with Automatic Backup and Undo History Stay safe with the permanent Undo History. When PowerGREP overwrites a file, it will create a backup copy of the original using your preferred naming style, placing the backup in your preferred location. If you change your mind about a particular action, undo it with just one click in PowerGREP's Undo History. Even after you've closed PowerGREP or rebooted your computer. Or, with another click, delete all backup files when they're no longer needed.
http://www.powergrep.com/benefits.html
2006/12/18
PowerGREP Benefits: Search, Replace and Collect Information across Files and Fold...
Page 3 of 3
Compatible with a Wide Range of Software PowerGREP is compatible with a wide range of software in various ways. Use industry standard regular expressions to specify text patterns, compatible with Perl, Java, .NET and many other applications and programming languages. Use the skills you already have with PowerGREP, or use your new-found skills in many situations. Where most Windows grep tools support only Windows text files, and probably Unicode, PowerGREP supports a wide range of both current and legacy text file encodings: all Windows code pages, various Unicode transformations, all ISO8859 character sets, most MS-DOS and PC DOS code pages, ECBDIC IBM mainframe code pages, KOI8, etc. Search through, edit and create text files in any of these encodings. Configure PowerGREP to use specific encodings for certain file types. PowerGREP can also decode a variety of popular proprietary file formats: Microsoft Word documents (.doc and .dot files), Adobe Acrobat documents (.pdf files), Microsoft Excel spreadsheets (.xls files), Lotus 1-2-3 spreadsheets (.wks and .wk1 files) and Quattro Pro spreadsheets (.wq1, .wq2 and .wkq files). Search through these files as if they were plain text files, even if you don't have the original software that created those files.
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/benefits.html Last Modified: 14 December 2006
http://www.powergrep.com/benefits.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Easily Search for Information through Large Numbers of Files and Find The Text Yo...
Page 1 of 3
Easily Search for Information through Large Numbers of Files on Your PC and Network
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences
Find What You Want With PowerGREP, you can quickly search for a piece of information through files and folders on your computer or network. Simply type in a keyword or phrase in the Search box, select which folder PowerGREP should go through and which types of files are of interest. PowerGREP will present you with a list of files and/or individual search matches. Double-clicking a match in the results to open its file and inspect the match's context.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista. 100% satisfied or money back free trial download
File Sectioning Extra Processing Easier to Use File Selector File Editor Library Backup & Undo
Examples Windows grep File Formats
The Search feature is very useful for searching through archived files. Suppose you remember writing a letter or email about something, but you do not remember to who and when, simply type in a relevant keyword in PowerGREP and search through all your archived correspondence. If you are a programmer, you can quickly search through all your source code, or your development tool's library source code. You could type in a function name to see where and how it is used, which is very useful when studying new library functions, or when you plan to modify one of your own library functions. Tracking particular events in huge numbers of log files is easy. Type in a relevant keyword or regular expression (see below) matching the event, and PowerGREP will give you a list of log file lines where that event occurred.
Press Resources Newsletter
Search Without Knowing What You Want
Version History Affiliates
Using regular expressions will unleash the true power of PowerGREP. Regular expressions allow you to search for information even if you do not know exactly what you are looking for. If you are looking for an email address, construct a regular expression matching any email address, and PowerGREP will happily present you with all email addresses it can find in the files you had it search through. It is even easier: simply open the example PowerGREP Action file for finding email addresses that is included with PowerGREP, and let it run. When
http://www.powergrep.com/search.html
2006/12/18
Easily Search for Information through Large Numbers of Files and Find The Text Yo...
Page 2 of 3
you have the list, double-click the email addresses to inspect the context so see which is the one you were looking for. If you know something happened in October 2002, you could search using the regular expression 2002-10-[0-3]?[0-9]. That is, the text 2002-10-, followed by an optional digit between 0 and 3, followed by another digit. If you are unsure about the date format, just search using 2002-10-[0-3]?[0-9]| [0-3]?[0-9]/10/(20)?02|10/[0-3]?[0-9]/(20)?02. Looks a bit complicated, but building such a regular expression is quite straightforward once you have a little bit experience. It took me about 30 seconds to write the last one from scratch. While you can do many complex things with regular expressions, many classic searches are easy to do with regular expressions. Searching for any of a bunch of keywords, simply separate them with a pipe symbol: keyword1|keyword2|keyword3. Looking for a word starting with "cat"? Just use \b for the word boundary, and \w+ for one or more word characters (i.e. letters): \bcat\w+. Very easy, once you know how. PowerGREP's help file and printable manual will tell you all there is to know about regular expressions. It almost goes without saying that after carefully crafting a complex regular expression, you can easily save it into a PowerGREP library for instant reuse. Or, share libraries with colleagues and friends. PowerGREP's regular expression syntax is fully compatible with Perl, Java and .NET, including all flavor-specific extensions. Many other programming languages and tools use the same regular expression syntax. Learning regular expressions is a smart investment. They have many applications in addition to those offered by PowerGREP.
The Most Powerful GREP Tool for Windows
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before
http://www.powergrep.com/search.html
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF
2006/12/18
Easily Search for Information through Large Numbers of Files and Find The Text Yo...
searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Page 3 of 3
documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/search.html Last Modified: 14 December 2006
http://www.powergrep.com/search.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Powerful Text File Maintenance with Search and Replace using Regular Expressions
Page 1 of 3
Powerful Text File Maintenance with Search and Replace using Regular Expressions
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing Easier to Use
Simply Searching and Replacing through Large Numbers of Files The basic way to use PowerGREP's search and replace functionality is like the search and replace feature offered by any text editor. Type in the text you want to have replaced in the search box. Put the text you want to have it replaced with in the Replace box. Specify the folder and file mask (such as *.txt), and click the Execute button. PowerGREP will then perform the search and replace operation on all files matching the file mask in the folder that you specified, and in its subfolders if you want.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista. 100% satisfied or money back free trial download
File Selector File Editor Library Backup & Undo
Examples Windows grep File Formats Press Resources
But PowerGREP offers you much more than that. If you want, PowerGREP will present you with a list of all replacements that have been made. Double-click on a replacement to see its context. Prevent mistakes by previewing the results before modifying any files. Replace or revert individual matches in PowerGREP's full-featured file editor. Should you change your mind later, the Undo History will save your day by restoring all files that were modified. Specify target options to tell PowerGREP to duplicate the files searched through and make the replacements in the duplicated files. This way you can easily produce different editions of the same set of files.
Newsletter Version History Affiliates
Powerful Text File Maintenance with Regular Expressions While searching and replacing pieces of text is useful, you can automate many tedious editing tasks by adding regular expressions to the mix. Let me present you with an example. Suppose you have a rather long list of pairs in the form of one=another and you want to swap them. You can do this easily with PowerGREP by searching with the regular expression (\w+)=(\w+) and
http://www.powergrep.com/replace.html
2006/12/18
Powerful Text File Maintenance with Search and Replace using Regular Expressions
Page 2 of 3
replacing with \2=\1. The regular expression will match a word, followed by an equals sign, followed by another word. The parenthesis capture the first word into the first "backreference", and the second word into the second "backreference". In the replacement text, we can reuse those with \1 and \2 respectively. So setting the replacement text to \2=\1 will swap the words. Do not worry if the above looks complex. The documentation that is included with PowerGREP contains a detailed introduction to regular expressions. With a bit of practice, you can create simple regular expressions like the above in a matter of minutes. And when you spend time creating a complex regular expression, you can save it into a PowerGREP action file or library for instant reuse later.
Unlimited Power and Flexibility While many Windows grep tools can search and replace with a single regular expression, PowerGREP offers unparalleled power and flexibility. Apply many changes at once by using a list of regular expressions. You can have the list processed sequentially, where each step works on the results of all previous steps, or concurrently, where each step is independent. There's no limit to the number of regular expressions you can use. You can easily perform complex editing and conversion tasks with PowerGREP's unique file sectioning and extra processing features. Instead of creating one complex regular expression that does it all, use several simple regular expressions that work together. Use file sectioning to process only certain parts of each file, such as only headings, only body text, only markup tags, only comments and strings in source code, etc. Use extra processing to modify each search match in any way you want using full regular expressions, not just simply move text around with backreferences.
The Most Powerful GREP Tool for Windows
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently
http://www.powergrep.com/replace.html
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages,
2006/12/18
Powerful Text File Maintenance with Search and Replace using Regular Expressions
Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Page 3 of 3
Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/replace.html Last Modified: 14 December 2006
http://www.powergrep.com/replace.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Extract and Collect Information and Statistics from Logs, Archives, etc...
Page 1 of 3
Extracting and Collecting Information and Statistics from Logs, Archives, etc...
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace
Gathering Raw Data While most grep tools Buy & Download PowerGREP Now only display search Only US$ 149 results on the screen, Windows 98, ME, NT4, 2000, XP and Vista. PowerGREP can save 100% satisfied or money back search matches into one free trial download or more new files. This way you can extract useful data from a large set of files, such as logs and archives. You can feed this data into another application for further processing. Use PowerGREP's unique file sectioning abilities to collect exactly those search matches you're interested in. E.g. when processing source code, you can easily skip or restrict the search to comments and strings. With the unique extra processing feature, you can convert each match into a useful format. E.g. when extracting search terms from referrer URLs in your web site's logs, you can automatically convert the URL-encoded search terms into plain text before saving them to file.
Collect Information Sequences File Sectioning Extra Processing
Computing Ad Hoc Statistics
Easier to Use File Selector File Editor Library Backup & Undo
Examples Windows grep File Formats Press Resources
You can gather useful statistics by telling PowerGREP to count identical search matches and sort them alphabetically, or by match count. You can have the statistics split up for each file that was searched through, or have everything put together to see the overall totals.
Newsletter Version History Affiliates
You can use this to collect virtually any statistic you want from any kind of log or archive. Very handy for inspecting server or system logs for which no specialized analyzers are available, or for computing specific statistics not supported by your log analyzer. PowerGREP comes with examples for processing web server logs. These examples are explained in the documentation in great detail, so you can adapt them to your own needs or to different kinds of logs.
http://www.powergrep.com/collect.html
2006/12/18
Extract and Collect Information and Statistics from Logs, Archives, etc...
Page 2 of 3
Create PowerGREP Actions Instead of Writing a Log Analyzer If you are developing software that generates log files, or work with custom software that does, you can save a lot of time by creating a PowerGREP library. Share this library with customers or colleages that use the same software, instead of investing a lot of time in creating a log analyzer specific to that software. Start with creating regular expressions that match the various entries in the log files. Then use those regular expressions to create PowerGREP actions that calculate various interesting statistics or extract useful entries from your logs. Finally, put those actions into a PowerGREP library. This is a single file that you can easily email to others or make available for download. Anybody can then open that library in PowerGREP, pick an action from it, specify the location of their log files, and instantly get the specific information they want. They do not need to know anything about regular expressions or understand how PowerGREP works to do this.
The Most Powerful GREP Tool for Windows
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
http://www.powergrep.com/collect.html
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
2006/12/18
Extract and Collect Information and Statistics from Logs, Archives, etc...
Page 3 of 3
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/collect.html Last Modified: 14 December 2006
http://www.powergrep.com/collect.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Regular Expression Sequences - Search and Replace with Multiple Regular Expressions Page 1 of 2
Search and Replace with Multiple Regular Expressions
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing Easier to Use File Selector File Editor Library Backup & Undo
Examples Windows grep
Regular Expression Sequences Most grep tools can only search for a single regular expression. With PowerGREP you can use as many regular expressions or literal search terms as you want, with PowerGREP's unique regular expression sequence capabilities.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista. 100% satisfied or money back free trial download
In the screen shot, I'm performing two substitutions at once, replacing "classification" with "category", and "cat" with "dog". I've also restricted the search to comments and strings in Java and C++ source code files, using three simple regular expressions. One for single-line comments, one for multi-line comments, and one for strings. All this is very straightforward in PowerGREP, but impossible with any other grep tool.
Three Sequences
File Formats A PowerGREP action can consist of up to three sequences:
Press Resources Newsletter Version History Affiliates
The main search, search-and-replace or data collection action. Extra processing applied to the substitution text in a search-and-replace or data collection action. File sectioning to limit the search to specific parts of each file, or to split files into records or sections. No other Windows grep tool offers you such flexibility in combining multiple regular expressions. Suppose you want to convert image file references from local Windows folders to UNIX server directories. Trying to do this with a basic grep tool that can use
http://www.powergrep.com/sequence.html
2006/12/18
Regular Expression Sequences - Search and Replace with Multiple Regular Expressions Page 2 of 2
only a single regular expression would require a very complicated and incomprehensible regex. With PowerGREP it's much easier to use three simple regular expressions: one to limit the search to IMG tags, one to substitute SRC attributes in the IMG tags, and one to covert Windows back slashes to UNIX forward slashes in the SRC attribute paths.
Overlapping and Non-Overlapping Searches It's up to you what happens when executing the example in the screen shot on the string "The classification for cat is mammal." If you turn on non-overlapping search, "classification" is replaced with "category" and "cat" with "dog", resulting in "The category for dog is mammal." If you turn off non-overlapping search, replacements will cascade. While undesirable in some situations, the cascade enables you to perform some very powerful data conversions. In our simple example, the first substitution would result in "The category for cat is mammal. If we're not restricting the search to whole words, the second will result in "The dogegory for dog is mammal."
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/sequence.html Last Modified: 14 December 2006
http://www.powergrep.com/sequence.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Search Through File Parts, Sections and Records - Windows grep
Page 1 of 2
Slice and Dice Files Any Way You Want
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing Easier to Use File Selector File Editor Library Backup & Undo
Examples Windows grep File Formats
Search Through Only Specific File Sections Like any Windows grep tool, with PowerGREP you can limit the search to specific files. On top of that, PowerGREP offers you the unique ability to search only through specific parts or sections of those files. E.g. when searching through HTML files, you can easily limit the search to the headings in those files.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista. 100% satisfied or money back free trial download
The key benefit of PowerGREP's file sectioning is that using it, you can keep your regular expressions or search queries simple. In the screen shot, you can see a search-and-replace to be executed on Java and C++ source code files. With PowerGREP's file sectioning feature, the search is restricted to comments and strings in Java and C++ source code files. This is done with a sequence of three simple regular expressions. One for single-line comments, one for multi-line comments, and one for strings. Achieving the same with a single regular expression in a basic grep tool is certainly possible, but far more complicated. With PowerGREP, you just need three off-the-shelf (or, off PowerGREP's library) regular expressions that you can reuse in many situations.
Press Resources Newsletter
Split Files into Records
Version History Affiliates
When you search through entire files, PowerGREP will by default display one line of context in the results for each match. Just like most other Windows grep tools. If your files are not line-based, use PowerGREP's file sectioning to split the file into records or logical chunks, any way you want. The results will then display whole records as context in the search results. You can either use a regular
http://www.powergrep.com/section.html
2006/12/18
Search Through File Parts, Sections and Records - Windows grep
Page 2 of 2
expression to match entire records, or simply specify the record delimiters.
The Most Powerful GREP Tool for Windows
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/section.html Last Modified: 14 December 2006
http://www.powergrep.com/section.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Post-Process Search-and-Replace Matches - Windows grep
Page 1 of 2
Post-Process Substituted and Collected Text
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing Easier to Use
Flexible Data Conversion and Extraction Often, when converting files with search-andreplace or when collecting data, the original search match isn't quite in the format you'd like it to be. E.g. when extracting Google queries from referring URLs in your web server's log files, varies characters in the Google queries are URLencoded, making them hard to read.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista. 100% satisfied or money back free trial download
PowerGREP's "extra processing" feature gives you the unique ability to search-and-replace each individual search match or substitution text with an extra regular expression sequence. This way you can use far simpler regular expressions or even literal text to convert or extract the data in the format you want.
File Selector File Editor Library Backup & Undo
Examples Windows grep
In the screen shot, you can see a PowerGREP action and its results, extracting Google queries from the logs of this web site. The main regular expression is a simple adaptation from the example regex to match Apache web log items. The extra processing is set to a list of seven easy plain text substitutions, replacing the 7 most common URL-encoded characters in each collected Google query. Doing this with a single regular expression in a basic Windows grep tool would have been impossible.
File Formats Press Resources
The Most Powerful GREP Tool for Windows
Newsletter Version History Affiliates
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents
http://www.powergrep.com/extra.html
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor
2006/12/18
Post-Process Search-and-Replace Matches - Windows grep
Collect information and statistics from log files or archives
Page 2 of 2
built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/extra.html Last Modified: 14 December 2006
http://www.powergrep.com/extra.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Easy to Use Windows Grep
Page 1 of 2
The Most Powerful Windows Grep Is The Easiest One to Use
Welcome Buy Now! Our Guarantee Download Testimonials
More Power to Reduce Complexity It may seem contradictory, but the most powerful Buy & Download PowerGREP Now Windows grep tool is also the easiest one to use, Only US$ 149 after a bit of practice. The reason is that you can Windows 98, ME, NT4, 2000, XP and Vista. execute many tasks in PowerGREP with several 100% satisfied or money back simple regular expressions, whereas a basic free trial download grep tool would require you to create one very complex regular expression to achieve the same result.
Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing
An example will make this clear. When searching through or modifying source code files, you'll often want to restrict the search to comments and/or strings, or search through comments and/or strings exclusively. E.g. if you discover you've been misspelling "referrer" as "referer" throughout your project, you'd probably want to fix the mistake in comments and strings, but leave the actual source code untouched. Modifying the source code might break ties to other modules, a hassle not worth correcting a spelling mistake. (As a bit of trivia: the Apache web server stores the referring URL in a variable HTTP_REFERER for exactly this reason.) PowerGREP makes this easy with its "file sectioning" feature. Simply use stock regular expressions for matching comments and strings to section the file. Then use a plain text search-and-replace to substitute "referer" with "referrer". Quick and easy. You'll find this particular example in PowerGREP's grep library. In many other situations, you'll be able to use common regular expressions you'll find in libraries with tools like RegexBuddy or on various web sites.
Easier to Use File Selector File Editor Library
Step by Step Example
Backup & Undo
Examples Windows grep File Formats Press Resources
Select "search for sections" from the "file sectioning" list in PowerGREP. Set the section search type to "list of regular expressions". Add one regular expression to the list for each kind of string and comment the programming language you're working with supports. E.g. for C or Java, use //.* for single-line comments, (?s)/\*.*?\*/ for multi-line comments, and "[^"\\\r\n]*(?:\\.[^"\\\r\n]*)*" for strings. Set the action type to "search and replace". Enter "referer" as the search text, and "referrer" as the replacement. Done!
Newsletter Version History
Using a Single Regex (Don't Try This at Home)
Affiliates How hard can it be to do this with a traditional grep tool that uses only a single regular expression? It turns out it is neigh impossible. The closest solution I found is to search for (//.*?)referer(.*)| ("[^"\\\r\n]*(?:\\.[^"\\\r\n]*)*)referer([^"\\\r\n]*(?:\\.[^"\\\r\n]*)*")| (?s:(/\*.*?)referer(.*?\*/)) and replace with \1\3\5referrer\2\4\6. Unfortunately, this behemoth only replaces the first occurrence of "referer" in each comment or string, while PowerGREP replaces them all at once. Don't make your life difficult by choosing a simple grep tool!
The Real Time Savings Since PowerGREP enables you to use stock patterns in many situations, you can save a lot of time by saving your PowerGREP actions into a library. E.g. if the next day you want to extract email addresses from comments and strings, you'd use the same file sectioning settings. Instead of doing the search and replace, you'd search for a regex matching an email address, using a standard regular expression from
http://www.powergrep.com/easy.html
2006/12/18
Easy to Use Windows Grep
Page 2 of 2
a library, such as \b[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b. With another Windows grep tool, where you only have a single regex at your disposal, you could try: //.*?(\b[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b).*| "[^"\\\r\n]*(?:\\.[^"\\\r\n]*)*(\b[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b) [^"\\\r\n]*(?:\\.[^"\\\r\n]*)*"| (?s:/\*.*?(\b[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b).*?\*/). You won't find something like this in any library. Too complicated. Changing your mind is easy too. If you want to search through everything except comments or strings, or you want to search through either comments or strings only, you can use the same regular expression in PowerGREP. You just need to change a few options in the file sectioning. It only takes a few seconds. But if you had to use one of the behemoth patterns above, you'd have to rewrite it completely.
See PowerGREP in Action There are four ways to see PowerGREP in action: Just sit back and watch the self-running demonstrations in your web browser. Take a look at the screen shots. Download the free evaluation version, which comes with full documentation. Buy PowerGREP now and try it risk-free with our 90-day unconditional money-back guarantee. Read more about PowerGREP's features and benefits.
Page URL: http://www.powergrep.com/easy.html Last Modified: 14 December 2006
http://www.powergrep.com/easy.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Explore Files, Folders, Archives on Your PC and Network - Windows grep
Page 1 of 3
Explore Files, Folders, Archives on Your PC and Network Select Files Easily
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning
PowerGREP's built-in file selector shows you all files, folders and archives on your own PC, and on your local network. With just one click, you can include or exclude individual files, all files in a single folder or archive, or all files in a folder and its subfolders. Tick and cross marks show you which files will be included in the next search at a glance. After searching, you can readily see how many matches were found in each file. For folders and archives, you can see how many matches were found in how many files, out of how many files searched. Quickly access files with search results by showing only files searched through, or only files with search matches.
Extra Processing Easier to Use
File Masks
File Selector File Editor Library Backup & Undo
Examples
Include or exclude files based on their file type (extension) or file name. Enter any number of traditional file masks, or use regular expressions.
Windows grep File Formats Press Resources Newsletter
File Dates Limit the search to files that were modified, or not modified, during the past several hours, days, weeks, months or years. Or, specify a range of exact dates before, after or between which the files should not have been modified.
Version History Affiliates
"The new file selector is fantastic - a huge improvement over almost anything else I've seen. I have often found it annoying when I have several directories spread out across the filesystem that I want included in one search. This generally required either complex file masks of multiple searches in the past. Now once I get to work on a given project, it's all right there and can be modified in no time."
http://www.powergrep.com/filesel.html
2006/12/18
Explore Files, Folders, Archives on Your PC and Network - Windows grep
Page 2 of 3
-- Tom Lambert 7 May 2005, California, USA
Powerful Windows grep
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
http://www.powergrep.com/filesel.html
2006/12/18
Explore Files, Folders, Archives on Your PC and Network - Windows grep
Page URL: http://www.powergrep.com/filesel.html Last Modified: 08 June 2005
http://www.powergrep.com/filesel.html
Page 3 of 3
Copyright © 2002-2005 Jan Goyvaerts. All rights reserved.
2006/12/18
Windows GREP Tool with Built-in Text and Hexadecimal File Editor
Page 1 of 3
PowerGREP's Convenient Built-in File Editor
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos
Full-Featured Text and Hexadecimal Editor You can edit any text or binary file directly in PowerGREP, just like you would in a text editor or a hexadecimal editor. PowerGREP's editor has all the features you'd expect: word wrapping, line numbering, syntax highlighting, block editing, unlimited undo, etc.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista.
Screen Shots Features & Benefits
Highlight, Replace and Revert Matches
Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing Easier to Use File Selector File Editor Library Backup & Undo
Examples Windows grep File Formats Press Resources Newsletter Version History
The key benefit of using PowerGREP's built-in editor is that you can easily inspect the full context of each highlighted search match. Click the Next Match and Previous Match buttons to quickly navigate through all matches in the file. Match highlighting persists even when you edit the file. After previewing or executing a search-and-replace action, you can conveniently replace or revert individual matches. Simply click on the match, and then click the Replace or Revert button in the editor. To replace just a few of the search matches, preview the action and then replace individual matches. To replace most search matches, execute the action (which replaces all matches), and then revert those individual matches that you didn't want to replace.
Affiliates PowerGREP's method of replacing and reverting individual matches is far more intuitive than the way most Windows search-and-replace tools work. The typical Windows grep tool forces you to answer a Yes/No question popping up for each search match, in the order that matches are found. PowerGREP gives you the opportunity to replace and revert matches in any order, whenever you want, with full editing access to the file.
http://www.powergrep.com/editor.html
2006/12/18
Windows GREP Tool with Built-in Text and Hexadecimal File Editor
Page 2 of 3
If you save the results into a PowerGREP Results file, you can open the results days or weeks later, and still see each match highlighted. You'll still be able to replace or revert individual matches, if your earlier decisions weren't so fortunate.
Open Files in External Applications You can instantly open any file in its default application, by right-clicking on it in PowerGREP. You can also configure any number of external editors for opening files of specific types, or any kind of file.
The Most Powerful GREP Tool for Windows
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any
http://www.powergrep.com/editor.html
2006/12/18
Windows GREP Tool with Built-in Text and Hexadecimal File Editor
Page 3 of 3
limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/editor.html Last Modified: 14 December 2006
http://www.powergrep.com/editor.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Your Own GREP Library with Powerful Search and Text Processing Actions
Page 1 of 3
Your Own GREP Library with Powerful Search and Text Processing Actions
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing Easier to Use File Selector File Editor Library Backup & Undo
Examples Windows grep File Formats Press Resources Newsletter Version History Affiliates
Easily Reuse PowerGREP Actions When you've crafted a PowerGREP action, store the action into your own PowerGREP library. Later, you can easily search and instantly reuse any action you've saved into your library.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista.
Each library can hold an unlimited number of PowerGREP actions. You can give each action a detailed caption and description, and conveniently search both the caption and description to find the action you need later. It's perfectly possible, and even a good idea, to store each variation of every action you've ever used into your library, and make note of the difference in the description. When you buy PowerGREP, you also get a library of actions that you can use for a wide range of purposes. The actions and regular expressions in the example library are described in detail in PowerGREP's help file. They cover almost all aspects of PowerGREP's functionality. Be sure to check out all the examples in the help
http://www.powergrep.com/library.html
2006/12/18
Your Own GREP Library with Powerful Search and Text Processing Actions
Page 2 of 3
file. I'm sure you will be surprised at PowerGREP's versatility. With a bit of practice, you will be able to easily perform many search or text processing tasks that would be tedious or not even worth the effort without PowerGREP.
The Most Powerful GREP Tool for Windows
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months.
http://www.powergrep.com/library.html
2006/12/18
Your Own GREP Library with Powerful Search and Text Processing Actions
Page 3 of 3
Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/library.html Last Modified: 14 December 2006
http://www.powergrep.com/library.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18
Search and Replace Safely with PowerGREP's Flexible Backup Option and Undo Abi... Page 1 of 3
Search and Replace Safely with PowerGREP's Flexible Backup Options and Undo Abilities
Welcome Buy Now! Our Guarantee Download Testimonials Contact Demos Screen Shots Features & Benefits Searching Search and Replace Collect Information Sequences File Sectioning Extra Processing Easier to Use File Selector File Editor Library Backup & Undo
Examples Windows grep File Formats Press Resources Newsletter Version History Affiliates
A Wide Range of Backup Options Prevents Data Loss With PowerGREP, you can maintain large sets of files and produce different editions of those files. The extensive backup options make sure you need not worry about losing important data when a certain action turns out to be unfortunate.
Buy & Download PowerGREP Now Only US$ 149 Windows 98, ME, NT4, 2000, XP and Vista.
Choose the file name style for backup copies that suits your habits. Give backup files a particular extension to set them apart, or prepend "Backup X of " to the file name so you can easily open backup files with the associated application. Or give backup files the same name as the original, placing them into a different location. Place backup files into the same folder as the original, or specify a specific backup folder to reduce clutter. Or place backup files into .zip archives to save on disk space. Use automatically numbered backup file names and backup locations to keep separate sets of backup files for each action modifying a particular file or set of files.
http://www.powergrep.com/undo.html
2006/12/18
Search and Replace Safely with PowerGREP's Flexible Backup Option and Undo Abi... Page 2 of 3
Easily Undo Actions and Clean Up Backups with The Persistent Undo History PowerGREP's Undo History pane automatically keeps track of which actions modified which files, and which backup files were created. If something went wrong, you can undo any given action at the click of a button. The Undo History is persistent, even after closing PowerGREP or shutting down your computer. It is saved into a file of your choice. You can undo any action as long as you did not delete the backup files. Cleaning up backup files for any given action is just as easy at the click of another button. Take a look at screen shot of the Undo History Read more about editing and maintaining text files with PowerGREP's search and replace.
The Most Powerful GREP Tool for Windows
When to Use Find files and information anywhere on your PC or network Comprehensively edit, maintain or convert large sets of data files or documents Collect information and statistics from log files or archives
All-in-One Tool Easier to use than most Windows grep tools Explore files, folders, archives on your PC and network Full-featured text and hex editor built-in
Widely Compatible Unique Abilities Apply any number of search terms of regular expressions sequentially or concurrently Search through specific file sections Split files into records before searching Post-process replacement text or text to be collected Stay safe with the permanent Undo History
Perl, Java and .NET compatible regular expressions Extensive text encoding support: Windows and DOS code pages, Unicode, ISO-8859, ECBDIC, KOI8, etc. Search MS Word and PDF documents Search Excel, Lotus 1-2-3 and Quattro Pro spreadsheets Search through and move files in and out of ZIP archives
Get Your Own Copy of PowerGREP Now
http://www.powergrep.com/undo.html
2006/12/18
Search and Replace Safely with PowerGREP's Flexible Backup Option and Undo Abi... Page 3 of 3
There are two ways in which you can get your own copy of PowerGREP and evaluate the software risk-free. The best option is to buy your own copy of PowerGREP for US$ 149. Your purchase is covered by Jan Goyvaerts's personal three month risk-free unconditional money-back guarantee. This allows you to try the software without any limitations and without any risk for three months. Alternatively, you can download the free evaluation version of PowerGREP. The free evaluation version can be downloaded anonymously. It allows you to explore PowerGREP for 15 days of actual use. Full documentation is included. The documentation extensively covers both PowerGREP itself, and the regular expression syntax.
Page URL: http://www.powergrep.com/undo.html Last Modified: 14 December 2006
http://www.powergrep.com/undo.html
Copyright © 2002-2006 Jan Goyvaerts. All rights reserved.
2006/12/18