Re: Help: How to Find and Replace Tags

2018-01-11 Thread Kerri Hicks
You're missing the parenthesis around the contents of the element. You have
to make it a capture group, so that you can reuse it.

I think this will do what you want it to.



--Kerri​

On Thu, Jan 11, 2018 at 4:54 PM, bcross 
wrote:

> I want to find all instances of this tag in my document:
> .*?
>
> and replace it with:
> .*?
>
> But this does not work.
> What is the correct way to do this?
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
> ---
> 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 bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Help: How to Find and Replace Tags

2018-01-11 Thread Jean-Christophe Helary


> On Jan 12, 2018, at 6:54, bcross  wrote:
> 
> I want to find all instances of this tag in my document: 
> .*?

([^<]*)

> and replace it with:
> .*?  

\1

Everything you need to know is in the regex chapter of the BBEdit manual.


Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.com


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Help: How to Find and Replace Tags

2018-01-11 Thread bcross
I want to find all instances of this tag in my document: 
.*?

and replace it with:
.*?  

But this does not work.
What is the correct way to do this?

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.