Paul~

If you literally mean "(?s)^Note:.*?(?=^RULE)", then you could achieve the 
effect you want by escaping all the regex characters in BBEdit's "Search for: 
field, then surround the whole thing with matching parentheses, as follows ...

(\(\⌀?s\)\^Note:\.\*\?\(\?=\^RULE\))

... and then in the "Replace With:" field specify ...

\t\1

... to prepend a tab in front of your escaped regex phrase, wherever that 
phrase may occur in your document.

Experiment with it to see if it does what you want. That is, make a copy of 
your document (in Finder: "⌘d"), plug in the search and replace values, choose 
"Replace All" and see if this achieves what you want.

~Semper Fi, Mac!

= = = = = = = = = = = = = = = = = = = =

On Jul 18, 2011, at 11:03 AM, Paul Linsay wrote:

> I have a very long text document that I need to format.  There are
> multi-line sections of text that are captured by the regex
> 
> (?s)^Note:.*?(?=^RULE)
> 
> that I would like to shift to the right by one tab -- even one space
> would be fine.  Every Note is different with an unpredictable number
> of lines. It's not clear to me how to do this formatting with a
> Replace All in a text factory.  I could do a Find and Shift Right by
> hand a few hundred times, but I'd rather not.
> 
> Any suggestions on how to do this with BBEdit?
> 
> Thanks--
> 
> -- 
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> <http://groups.google.com/group/bbedit?hl=en>
> If you have a feature request or would like to report a problem, 
> please email "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to