On Friday, September 30, 2016, jgill <[email protected]> wrote:

> I can search using - set theMonth to find "<h3>\\s*(.*?)\\s*</h3>" 
> searching in text 1 of text document "index.html" options {search 
> mode:grep} with selecting match
> 
> How can I access the \1 reference inside the brackets in Applescript?

The "grep substitution" verb should do that, e.g. after the "find" succeeds,

    grep substitution of "\\1"

should return the text represented by the first capture group.

Enjoy,

R.
-- 
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

-- 
This is the BBEdit Talk public discussion group. 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 Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to