Re: Help for search & replace with Grep

2020-06-12 Thread mrcmrc
I'll do for sure!

- Marco.



On Friday, June 12, 2020 at 4:37:20 PM UTC+2, Jean-Christophe Helary wrote:
>
>
>
> > On Jun 12, 2020, at 23:18, mrcmrc > 
> wrote: 
> > 
> > Thanks Jean-Christophe! It worked! 
>
> Take the time to look at the manual. It is extremely well written. 
>
> In fact, I had the exact same questions back in 96 when I first used 
> BBedit, and I decided to read the manual and everything I know about 
> regular expressions now pretty much comes from it. 
>
> So just take one or two hours to check it. Play with the search function 
> and see what you can do by yourself. 
>
>
> -- 
> Jean-Christophe Helary @brandelune 
> http://mac4translators.blogspot.com 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/d4d972d8-7418-48f2-ab32-ae22413486dfo%40googlegroups.com.


Re: Help for search & replace with Grep

2020-06-12 Thread mrcmrc
Thanks Fletcher, I'll take a look.

- Marco.


On Friday, June 12, 2020 at 4:40:25 PM UTC+2, flet...@cumuli.com wrote:
>
> Also, check out the Pattern Playground on the Search menu. Being able to 
> see what BBEdit is matching as you change the search pattern really helps 
> narrow in on how to make it work for your actual data. 
>
> [fletcher] 
>
>
> > On Jun 12, 2020, at 7:37 AM, Jean-Christophe Helary <
> jean.chris...@traduction-libre.org > wrote: 
> > 
> > 
> > 
> >> On Jun 12, 2020, at 23:18, mrcmrc > 
> wrote: 
> >> 
> >> Thanks Jean-Christophe! It worked! 
> > 
> > Take the time to look at the manual. It is extremely well written. 
> > 
> > In fact, I had the exact same questions back in 96 when I first used 
> BBedit, and I decided to read the manual and everything I know about 
> regular expressions now pretty much comes from it. 
> > 
> > So just take one or two hours to check it. Play with the search function 
> and see what you can do by yourself. 
> > 
> > 
> > -- 
> > Jean-Christophe Helary @brandelune 
> > http://mac4translators.blogspot.com 
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com 
> " rather than posting here. Follow @bbedit on Twitter: <
> https://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 bbe...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/825618E2-89F9-4031-9198-2BB71EED10A0%40traduction-libre.org.
>  
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/fef3cff1-5110-41d6-b421-206aa79fec01o%40googlegroups.com.


Re: Help for search & replace with Grep

2020-06-12 Thread Fletcher Sandbeck
Also, check out the Pattern Playground on the Search menu. Being able to see 
what BBEdit is matching as you change the search pattern really helps narrow in 
on how to make it work for your actual data.

[fletcher]


> On Jun 12, 2020, at 7:37 AM, Jean-Christophe Helary 
>  wrote:
> 
> 
> 
>> On Jun 12, 2020, at 23:18, mrcmrc  wrote:
>> 
>> Thanks Jean-Christophe! It worked!
> 
> Take the time to look at the manual. It is extremely well written.
> 
> In fact, I had the exact same questions back in 96 when I first used BBedit, 
> and I decided to read the manual and everything I know about regular 
> expressions now pretty much comes from it.
> 
> So just take one or two hours to check it. Play with the search function and 
> see what you can do by yourself.
> 
> 
> -- 
> Jean-Christophe Helary @brandelune
> http://mac4translators.blogspot.com
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/825618E2-89F9-4031-9198-2BB71EED10A0%40traduction-libre.org.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/507B4802-A546-49B8-A451-3E3869B6AFAD%40cumuli.com.


Re: Help for search & replace with Grep

2020-06-12 Thread Jean-Christophe Helary



> On Jun 12, 2020, at 23:18, mrcmrc  wrote:
> 
> Thanks Jean-Christophe! It worked!

Take the time to look at the manual. It is extremely well written.

In fact, I had the exact same questions back in 96 when I first used BBedit, 
and I decided to read the manual and everything I know about regular 
expressions now pretty much comes from it.

So just take one or two hours to check it. Play with the search function and 
see what you can do by yourself.


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

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/825618E2-89F9-4031-9198-2BB71EED10A0%40traduction-libre.org.


Re: Help for search & replace with Grep

2020-06-12 Thread mrcmrc
Thanks Jean-Christophe! It worked!

- Marco.



On Friday, June 12, 2020 at 3:39:42 PM UTC+2, Jean-Christophe Helary wrote:
>
>
>
> > On Jun 12, 2020, at 18:56, mrcmrc > 
> wrote: 
> > 
> > Hi, 
> > someone may help me? Usually I can do some very simple replacements, but 
> I don't have great experience with Grep syntax... 
> > 
> > I have a block of text like this: 
> > 
> > Miles Davis – trumpet 
> > John Coltrane – tenor saxophone 
> > Red Garland – piano 
> > Paul Chambers – double bass 
> > Philly Joe Jones – drumset 
> > 
> > and wish to get this: 
> > 
> > Miles Davis, John Coltrane, Red Garland, Paul Chambers, Philly Joe Jones 
>
> Search: 
>
>  – .*\n 
>
> Replace: 
>
> , 
>
> there is a space at the beginning of the search string 
> and one at the end of the replace one. 
>
>
> -- 
> Jean-Christophe Helary @brandelune 
> http://mac4translators.blogspot.com 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/7bf0e354-615b-47fd-bf2f-cfbb6cabb695o%40googlegroups.com.


Re: Help for search & replace with Grep

2020-06-12 Thread Jean-Christophe Helary



> On Jun 12, 2020, at 18:56, mrcmrc  wrote:
> 
> Hi,
> someone may help me? Usually I can do some very simple replacements, but I 
> don't have great experience with Grep syntax...
> 
> I have a block of text like this:
> 
> Miles Davis – trumpet
> John Coltrane – tenor saxophone
> Red Garland – piano
> Paul Chambers – double bass
> Philly Joe Jones – drumset
> 
> and wish to get this:
> 
> Miles Davis, John Coltrane, Red Garland, Paul Chambers, Philly Joe Jones

Search:

 – .*\n

Replace:

, 

there is a space at the beginning of the search string
and one at the end of the replace one.


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

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C68AAB2D-E41D-4DBC-A02E-FF609A133A7A%40traduction-libre.org.


Help for search & replace with Grep

2020-06-12 Thread mrcmrc
Hi,
someone may help me? Usually I can do some very simple replacements, but I 
don't have great experience with Grep syntax...

I have a block of text like this:

Miles Davis – trumpet
John Coltrane – tenor saxophone
Red Garland – piano
Paul Chambers – double bass
Philly Joe Jones – drumset

and wish to get this:

Miles Davis, John Coltrane, Red Garland, Paul Chambers, Philly Joe Jones

Thanks for any help!


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/e213ef30-9766-48d2-9465-9df9b5737719o%40googlegroups.com.