Re: Wildcard on search/replace

2018-01-30 Thread Tom Robinson
Yep :]

Though you’re not doing anything with the text inside the tags, so it’s 
redundant to capture it (with the brackets):

.*?


> On 2018-01-31, at 09:12, Jaime Guitart Vilches  
> wrote:
> 
> What I really would like to do is to erase anything between those tags 
> (including the tags themselves), so I understand I would have to use this:
> 
> Find: (.*?)
> Replace: [and here leave blank]

-- 
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: Wildcard on search/replace

2018-01-30 Thread Patrick Woolsey
On 1/30/18 at 3:12 PM, jaime.guit...@gmail.com (Jaime Guitart 
Vilches) wrote:


What I really would like to do is to erase anything between 
those tags (including the tags themselves), so I understand I 
would have to use this:


Find: (.*?)
Replace: [and here leave blank]



That should do the job, unless the contents of these tags span a 
hard line break, in which case this slight variation will handle same:


Find:((?s).*?)

Replace: [leave this field empty]



Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc. 

--
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: Wildcard on search/replace

2018-01-30 Thread Jaime Guitart Vilches
Well this may be very helpful, thank you very much.

What I really would like to do is to erase anything between those tags 
(including the tags themselves), so I understand I would have to use this:

Find: (.*?)
Replace: [and here leave blank]

I am very thankful, if this works you've just saved me hours of work!

Best,
Jaime

-- 
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: Wildcard on search/replace

2018-01-30 Thread Fletcher Sandbeck
I would add to look at the "Grep Reference" in BBEdit Help for documentation of 
the syntax. Grep is like wildcards on steroids.

[fletcher]


> On Jan 30, 2018, at 6:31 AM, Kerri Hicks  wrote:
> 
> Well, it depends on what you want to do to those  elements. But here's an 
> example (and note the "grep" box is checked at the bottom). This will take 
> the string
> 
>  this is what the number 5 looks like
> 
> and will return
> 
>  this is what the number  looks like
> 
> Does that help at all? More info about what you want to do with text between 
> the tags might be helpful, too.
> 
>  
> ​
> ​--Kerri
> 
> On Tue, Jan 30, 2018 at 8:01 AM, Jaime Guitart Vilches 
> > wrote:
> Hello
> I'm new to this and I hope I can get some help with what I expect/hope to be 
> a basic lack of knowledge on my side...
> I'm editing a large database and I need to replace a series of strings that 
> are clearly delimited with tags .
> I'm wondering if there's a wildcard character I can use to search for 
> anything contained between those tags?
> I've tried * and ? but it doesn't seem to work.
> It would save me SO much time...
> Thanks in advance,
> Jaime
> 
> -- 
> 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 
> .

-- 
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: Wildcard on search/replace

2018-01-30 Thread Kerri Hicks
Well, it depends on what you want to do to those  elements. But here's
an example (and note the "grep" box is checked at the bottom). This will
take the string

 this is what the number 5 looks like

and will return

 this is what the number  looks like

Does that help at all? More info about what you want to do with text
between the tags might be helpful, too.


​
​--Kerri

On Tue, Jan 30, 2018 at 8:01 AM, Jaime Guitart Vilches <
jaime.guit...@gmail.com> wrote:

> Hello
> I'm new to this and I hope I can get some help with what I expect/hope to
> be a basic lack of knowledge on my side...
> I'm editing a large database and I need to replace a series of strings
> that are clearly delimited with tags .
> I'm wondering if there's a wildcard character I can use to search for
> anything contained between those tags?
> I've tried * and ? but it doesn't seem to work.
> It would save me SO much time...
> Thanks in advance,
> Jaime
>
> --
> 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.


Wildcard on search/replace

2018-01-30 Thread Jaime Guitart Vilches
Hello
I'm new to this and I hope I can get some help with what I expect/hope to 
be a basic lack of knowledge on my side...
I'm editing a large database and I need to replace a series of strings that 
are clearly delimited with tags .
I'm wondering if there's a wildcard character I can use to search for 
anything contained between those tags?
I've tried * and ? but it doesn't seem to work.
It would save me SO much time...
Thanks in advance,
Jaime

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