Regexes are matched on a per-line basis. IIRC, each line includes the trailing newline, but it doesn't include the preceeding one.

Maybe you should try '^(?=# +)', or possibly using \A instead of ^ (I don't know what the \A vs ^ semantics are in the grammar matching).

On Dec 22, 2006, at 11:03 AM, Dr. Drang wrote:

But I can't get a foldingStopMarker that works. What I'd like to use is a blank line followed by a positive lookahead to a line that starts with a hash and a space, but


    foldingStopMarker = '^$\n(?=^# +)';


doesn't work, even though that regex works in the Find dialog box.


Are the start and stop markers restricted to single line patterns? The manual suggests that, but it isn't explicit. Does anyone have any ideas?


-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com