On Tue, Jan 29, 2008 at 04:39:34PM -0800, Steve Nicholson wrote:
> I need to replace a number of contiguous lines in the file I'm  
> editing that begin with a specific word ('mash' in the example) with  
> the contents of the clipboard.

> Aside from the contiguous block, there are no other lines in the file  
> beginning with 'mash'.
> 
> I can stumble my way around AppleScript but I'm not quite sure where  
> to start. Any help would be greatly appreciated.

This regex will find the block of lines all beginning with 'mash':

(^mash.*\r)+

For a simple approach, you could just use that in the Find dialog.  I'll
have to leave the AppleScript to someone else.  :)

Ronald

-- 
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to