Help needed with regular expressions

Darrin Chandler dwchandler at stilyagin.com
Thu Jan 26 08:11:20 MST 2006


Jerry Davis wrote:

>Here is a script I wrote many years ago, that helped me understand regexp's
>I called testre
>  
>
>>testre '^[a-z][abc](.*)' "tcsh"
>>    
>>
>|tcsh|
>captured value = sh
>
>it will put |'s around what was actually matched.
>and if you do capturing, i.e. a regexp inside of parens, it will show you what 
>was captured.
>  
>

Jerry! You ROCK!

-- 
Darrin Chandler            |  Phoenix BSD Users Group
dwchandler at stilyagin.com   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |



More information about the PLUG-discuss mailing list