note 24218 deleted from function.preg-match by sniper

From: Date: Fri, 17 Oct 2003 03:51:48 +0000
Subject: note 24218 deleted from function.preg-match by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58732@lists.php.net to get a copy of this message
Note Submitter: monte@ispi.net ---- [Editor's note: For those in Unix/Linux environments, you can also use the egrep command line program, the GNU version supports extended regexes, but not PCRE.] Here is a very handy command line utility called pmatch. It is meant to be an alternative to grep. Most of the functionality is similar, but this has the power of PCRE, and by default it shows only the portion of the line that matched, not the entire line. usage: pmatch [ -cfghilnv ] '/pattern/' [ file ] ... -c : show only line count for each file -f : show only filenames in output -g : greedy matching -h : supress filenames from output -i : ignore case -l : show entire line instead of just what matched -n : show line numbers in output -s : supress error messages about missing or unreadable files -t : do not trim whitespace from begin/end of lines -v : show lines that do NOT match pattern http://www.phpinsider.com/php/code/pmatch/pmatch

« previous php.notes (#58732) next »