From: Simon Strandgaard Date: 2006-01-17T13:59:41+09:00 Subject: Re: Question about regular expression On 1/17/06, Eric Luo wrote: > I need to hack out an regular expression, which will match "SNPB" without > matching "STR SNPB". > Since ruby 1.8.2 or 1.8.4 don't support the lookbehind feature. what's the > workable regular expression > for ruby version 1.8.2? tests = %w{SNPB STR\ SNPB} re = /(? [#, nil] ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0] -- Simon Strandgaard