Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread Rick Gordon
Some discussion here or googling . But it involves some coding outside BBEdit. Rick Gordon --- On May 14, 2023 at 6:37:10 PM [-0700], 'Andy Nickless' Via Bbedit

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread Jim Straus
Someone might have something better, but I think you could use the up to a colon match, and replace with \1. This might double strong your numbers.  Then search for (.*?) and replace with \1 to get rid of the duplicate holding.  It’s a two step processes.-Jim StrausOn May 14, 2023, at 5:05 PM,

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread Christopher Stone
> On May 14, 2023, at 11:29, 'Andy Nickless' via BBEdit Talk > mailto:bbedit@googlegroups.com>> wrote: > > Something that I've been unable to find out is how to skip searching > something which already contains a simple pattern: > For instance, to find a number consisting 1-3 digits I use

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread 'Andy Nickless' via BBEdit Talk
No Kaveh - Unfortunately Fletcher's reply doesn't help. I'll try to clarify. In this case, I want to make *bold* parts of some lines of text which begin with up to where the bold part will end at a colon (:) Any text after the colon won't be bold. *All this text will be bold, as until the

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread Kaveh Bazargan
Sorry, still not clear for me. Does Fletcher's answer work? Are you saying there are specific numbers you do not want to match, say 135 but ones that you do want to match, say 137 ? Otherwise can you explain further? On Sun, 14 May 2023 at 18:09, 'Andy Nickless' via BBEdit Talk <

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread 'Andy Nickless' via BBEdit Talk
Yes, of course, Kaveh - thanks for your speedy reply - again! I got this the other day (you helped with it) to find a line of text (or text and numbers) which end with a colon and a space - (.+?)\: It's brilliant, but there are occasions when I want to avoid a pattern such as 123. The number

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread Fletcher Sandbeck
\d{1,3} matches a sequence of 1 to 3 digits so it will match 1, 12, or 123. If you specify a single number in the braces then it will match only that number of digits. \d{3} will match 123, 231, etc. If you want to match all numbers longer than three digits you can use \d{3,}. This will match

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread Kaveh Bazargan
can you give examples of strings you want to match and strings you don't want to match? On Sun, 14 May 2023 at 17:29, 'Andy Nickless' via BBEdit Talk < bbedit@googlegroups.com> wrote: > Something that I've been unable to find out is how to skip searching > something which already contains a

Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread 'Andy Nickless' via BBEdit Talk
Something that I've been unable to find out is how to skip searching something which already contains a simple pattern: For instance, to find a number consisting 1-3 digits I use (\d{1,3}) - but how can I AVOID a number of up to 3 digits? Thanks in advance - Andy -- This is the BBEdit Talk