[TxMt] Problems with To Do List

James Edward Gray II james at grayproductions.net
Thu Jun 15 16:45:17 UTC 2006


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



More information about the textmate mailing list