On Fri, 2008-02-15 at 12:19 +1300, Michael Hutchinson wrote: [...] > Does anyone have suggestions for matching question marks and equals > signs in one line? I would like to match everything exactly between the > double quotes:
Apart from neither equal nor minus being any special in an RE (outside a char class) unlike the question mark, which has been answered already... Why are you guys now trying to re-invent the wheel in the special case of a gray asphalt street? What about a dirt track, grass, and anything else a wheel works on? I've pointed it out before. Just use ok_locales, which is all about these char sets. No REs, almost no thinking required, no headache. A single line, and you're done. guenther -- char *t="[EMAIL PROTECTED]"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}