Perfect!
Thanks,
Francisco

On Dec 12, 12:21 pm, Cai Alfredson <[email protected]> wrote:
> 11 dec 2010 kl. 23.28 skrev Francisco Hirsch:
>
> > For one of my blogs I process  the text in BBEdit with a text factory that 
> > does various searches and replacements.
> > Occasionally the text may include one or more of the following text: 
> > "[ref]" in any position
> > Obviously I can grep for: "\[ref\]".
> > But what I can't manage to do is that whenever there is at least one of 
> > "[ref]" to add at the end of the document the following text: 
> > "[references/]"
> > How can I  do this? With Applescript? But how?
> > Francisco
> > --
>
> Hi! Not sure I understand you correctly, but if you just want the text 
> [references/] put in, this is one simple way to do it with BBEdit:
>
> Use Grep, Case Sensitive
> Search for
> (\[ref\])([\s\S]*?)\Z
>
> Replace With:
> \1\2\r\[references/\]
>
> /Cai

-- 
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