Re: Need help with complex GREP pattern

2011-12-11 Thread Ronald J Kimball
David sent me a long test file off-list. Here's an improved regex that works in BBEdit: (?mx) (^THIS\ IS\ TRIP\ NUMBER.*\r (?:\S.*\r)* \r (?>(?: (?:[ \t]*\d.*\r)+ [ \t]*-+.*\r )*) (?:[ \t]*\d.*\r){3} [ \t]*\(.*\rTHE\ CALCULATED\ CREW\ COST.*\r ) I just had to add (?> ) around the m

Re: Need help with complex GREP pattern

2011-12-11 Thread David
Many thanks to Ronald and all for the help in getting the search string working for me! It's a real timesaver. -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscri

Re: Scripting Soft Wrapped Line Indentation?

2011-12-11 Thread Richard Fairbanks
The issue of running scripts from the BBEdit script menu has reared up again and any advice would be greatly appreciated! Appended below is the script that I am using to toggle the line indentation; it runs fine from iKey and the AS Editor, but not from the BBEdit scripts menu (where I would pref

CLM: Matching functions that have comments in their declarations

2011-12-11 Thread Fritz Anderson
I'm writing a codeless language module for the DTrace scripting language. My comment pattern is: (\A#!.*$)|((?s)/\*.*?\*/)|(//.*$) Which is to say, the shebang line that may be at the beginning of the file, or anything enclosed in /**/, or anything from // to the end of the line. My function pa

[ANN] BBEdit 10.1.1 (3127) pre-release

2011-12-11 Thread Rich Siegel
Good { morning, afternoon, evening }, Since the 10.1 release, we've incorporated a few fixes and refinements. A pre-release build is now available with those changes. (This build incorporates the changes from 3125, which you can read about here: