On Jun 15, 2006, at 10:58 AM, Allan Odgaard wrote: > Unfortunately the Ruby version we rely on does not do look-behind > assertions, making this more complex than necessary. You can usually fake look-behind with a reverse() and a look-ahead: line.reverse =~ /ODOT(?=\s*#\s*^)/ James Edward Gray II