[Cook] Cook Patterns / Regular Expressions Question

Jerry Pendergraft jerry at endocardial.com
Thu Oct 3 15:05:28 EST 2002


On Thu, 3 Oct 2002, Matthew Lee wrote:

> I'm having a couple of problems with cook patterns and regular
> expressions.
> 
> I want to determine if a substring appears within a list of words, and
> print out those words in which the substring is found.
> 
> Here is a debugging attempt at getting this to work:
> 
> function print match [match_mask %1g++%2
> 		      avr-g++ g++ h8300-coff-g++ g++-foo foo-g++-bar];

set match-mode-regex;
function print match [match_mask .*g++.*
		      avr-g++ g++ h8300-coff-g++ g++-foo foo-g++-bar];
> 
> Matt Lee
> KlaxonIQA
> Sydney, Australia

-- 
Jerry Pendergraft                        jerry.pendergraft at endocardial.com
Endocardial Solutions                    voice: 651-523-6935
1350 Energy Lane, Suite 110                fax: 651-644-7897
St Paul, MN 55108-5254






More information about the Cook-users mailing list