Re: wildcard search question

2018-09-27 Thread Christopher Stone
On 09/27/2018, at 16:18, Limore Ricciardi mailto:lim...@gmail.com>> wrote: > I basically want to replace these two lines with one line, leaving the > variable in tact. > > so it will look like this: Hey Limore, That's easy enough. Find: (item2)\.X-ABRELATEDNAMES;type=pref:(.+)\n\1.+

wildcard search question

2018-09-27 Thread Limore Ricciardi
Hi All, item2.X-ABRELATEDNAMES;type=pref:IFUSION/AKC item2.X-ABLabel:Keywords I am trying to do a search for this where "IFUSION/AKC" is the variable. does anyone know how i could achieve this? i basically want to replace these two lines with one line, leaving the variable in tact.

Re: grep for odd number of single quotes in a line?

2018-09-27 Thread Thomas Green
Many thanks to Patrick Woolsey and Fletcher Sandbeck for their contributions (especially for reminding me that the repetition quantifiers can match line breaks). I suddenly realised that my expression should have been using ‘at least 1’ rather than ‘0 or more’ at a couple of places. Here is my

Re: grep for odd number of single quotes in a line?

2018-09-27 Thread Patrick Woolsey
On 9/27/18 at 7:14 AM, thosgr...@gmail.com (Thomas Green) wrote: I need to find all lines that contain an odd number of single straight quotes, such as full_title: '_Acteon's Cantate Burlesque_' Is there any bound on how many single quotes a line can contain? Absent that, Fletcher's

Re: grep for odd number of single quotes in a line?

2018-09-27 Thread Fletcher Sandbeck
It isn't a complete solution, but if you search for \w'\w those will tend to the be apostrophes since paired quotes usually begin or end a word. [fletcher] > On Sep 27, 2018, at 4:14 AM, Thomas Green wrote: > > I need to find all lines that contain an odd number of single straight > quotes,

grep for odd number of single quotes in a line?

2018-09-27 Thread Thomas Green
I need to find all lines that contain an odd number of single straight quotes, such as full_title: '_Acteon's Cantate Burlesque_' (Such lines upset the YAML parser.) I have tried searching for any number of pairs of quotes and then a single quote: ^([^']*'[^']*')*[^']*' That is supposed to

Re: Display instances of selected text - color highlight

2018-09-27 Thread mrcmrc
Thanks to all! - Marco. -- 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 to the group. Follow @bbedit on Twitter: --- You received this message