From: ts Date: 2004-11-19T20:31:07+09:00 Subject: Re: Anchored Regexp get stalled or hung >>>>> "r" == rnicz writes: r> I've tried to make following regexp r> a=/^-{150}/ try this uln% diff -u regex.c~ regex.c --- regex.c~ 2004-10-27 04:46:51.000000000 +0200 +++ regex.c 2004-11-19 12:25:39.000000000 +0100 @@ -1011,8 +1011,8 @@ { int mcnt; int max = 0; - char *p = start; - char *pend = end; + unsigned char *p = start; + unsigned char *pend = end; char *must = 0; if (start == NULL) return 0; uln% uln% ./ruby -e 'a = "-" * 152; /^-{150}/ =~ a; p $&.size' 150 uln% Guy Decoux