I know I am gonna get slaughtered for this but...you don't actually need to code a Perl solution, nor install any extra software to do this...
C:\test>help findstr Searches for strings in files. FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/F:fil +e] [/C:string] [/G:file] [strings] [[drive:][path]filename[ ...]] /B Matches pattern if at the beginning of a line. /E Matches pattern if at the end of a line. /L Uses search strings literally. /R Uses search strings as regular expressions. /S Searches for matching files in the current directory and a +ll subdirectories. /I Specifies that the search is not to be case-sensitive. /X Prints lines that match exactly. /V Prints only lines that do not contain a match. /N Prints the line number before each line that matches. /M Prints only the filename if a file contains a match. /O Prints character offset before each matching line. /P Skip files with non-printable characters /F:file Reads file list from the specified file(/ stands for conso +le). /C:string Uses specified string as a literal search string. /G:file Gets search strings from the specified file(/ stands for c +onsole). strings Text to be searched for. [drive:][path]filename Specifies a file or files to search. Use spaces to separate multiple search strings unless the argument is +prefixed with /C. For example, 'FINDSTR "hello there" x.y' searches for "hello +" or "there" in file x.y. 'FINDSTR /C:"hello there" x.y' searches for "hello there" in file x.y. For information on FINDSTR regular expressions refer to the online Com +mand Reference.
Of course, if you want to do much more than just finding the references, you will probably want to use Perl anyway.
In reply to Re: Matching text in Perl
by BrowserUk
in thread Matching text in Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |