Re: Grep Find and Replace Issue

2024-05-10 Thread Kaveh Bazargan
y figured that out. > > On Friday, May 10, 2024 at 4:39:08 AM UTC+2 Kaveh Bazargan wrote: > >> Hi Marcus >> >> Sorry I think I made a mistake. I am not at my computer but pls try and >> put a semicolon before the backslash in replace. So replace is semicolon >>

Re: Grep Find and Replace Issue

2024-05-09 Thread Kaveh Bazargan
his produce an ";" ?! > Am I missing something? > Can you be more specific about how this applies to my situation? > > Thanks! > > Marcus > > On Wednesday, May 8, 2024 at 6:12:58 PM UTC+2 Kaveh Bazargan wrote: > >> Try: >> Search: " (\d\d\.\d\d\.\

Re: Grep Find and Replace Issue

2024-05-08 Thread Kaveh Bazargan
nd an > email to bbedit+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/5ad4d9d9-d32c-415a-aa7c-2d3282ad0802n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/5ad4d9d9-d32c-415a-aa7c-2d3282ad0802n%40googleg

Re: RegExp and search / replace question - removing "" when around a single word without whitespace

2024-04-18 Thread Kaveh Bazargan
.google.com/d/msgid/bbedit/871a5d1f-aa12-49c5-a058-cec16619ea8cn%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/871a5d1f-aa12-49c5-a058-cec16619ea8cn%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kaveh Bazargan PhD Director River Valley Technologies <

Re: Need Grep Pattern

2024-02-15 Thread Kaveh Bazargan
tter: < > 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 bbedit+unsubscr...@googlegroups.com. >

Re: Is this possible to GREP?

2024-01-27 Thread Kaveh Bazargan
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 ar

Re: Book capitalization, not “initial caps:” “the” not “The”

2023-11-16 Thread Kaveh Bazargan
upport, please email "supp...@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

Re: Splitting Amount into debits and credits

2023-11-10 Thread Kaveh Bazargan
Great. Wish they were all so simple. ;-) On Fri, 10 Nov 2023 at 13:29, Russell B wrote: > Yes that did the trick. Simple and elegent :-) > > On Friday, November 10, 2023 at 6:49:59 PM UTC+11 Kaveh Bazargan wrote: > >> Would this work: >> Search: ^\- >> Replace: \

Re: Splitting Amount into debits and credits

2023-11-09 Thread Kaveh Bazargan
%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/235027e7-b91a-410f-a9fb-ced770e11237n%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalley.io> ● Twitter <https://twitter.com/river

Re: Extract a group of lines from a text file on Mac

2023-10-28 Thread Kaveh Bazargan
: > On Oct 28, 2023, at 6:29 AM, Kaveh Bazargan wrote: > > But I believe that in other environments, e.g. other programming > languages, you sometimes need to escape. I think sometime with \" and > sometimes "" > > > The problem is that > > >- Regular

Re: Extract a group of lines from a text file on Mac

2023-10-28 Thread Kaveh Bazargan
around ERROR escaped here? I find any of these > search patterns work ... > \"ERROR" as above; > \"ERROR\" > "ERROR" > > On Wednesday, October 25, 2023 at 12:02:07 PM UTC-7 Kaveh Bazargan wrote: > >> Will this work? >> >> Search: >&g

Re: Color and text

2023-10-20 Thread Kaveh Bazargan
n > email to bbedit+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/9424d8d3-8ffd-46fe-945a-19c71c7d5bba%40rickgordon.com > <https://groups.google.com/d/msgid/bbedit/9424d8d3-8ffd-46fe-945a-19c71c7d5bba%

Re: Help with Grep syntax

2023-09-01 Thread Kaveh Bazargan
a538f3n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/474ff991-eb45-4ee6-b1b7-9d21e3a538f3n%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalley.io> ● Twitter <https://twitter.com/riv

Re: Change random uppercase words to lower case

2023-06-13 Thread Kaveh Bazargan
oing project, so if you can improve it, that would be very > useful. > Best wishes, > Andy > > > On 13 Jun 2023, at 15:21, Kaveh Bazargan wrote: > > I can look again if it helps. is the job done or useful to have these > enhancements added too? > > On Tue, 13 Jun 2

Re: Change random uppercase words to lower case

2023-06-13 Thread Kaveh Bazargan
ng too greedy! > Thanks so much for your help so far, it's saved me quite a lot of time. > > On Tuesday, 13 June 2023 at 13:42:14 UTC+1 Kaveh Bazargan wrote: > >> Try this: >> >> search: \b([A-Z]+)\b >> replace: \L\1 >> >> case sensitive >> >>

Re: Change random uppercase words to lower case

2023-06-13 Thread Kaveh Bazargan
oup 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/506999f0-7cce-435b-beaf-d5b0ca197b47n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/506999f0-7cce-4

Re: Replacing all spaces in a line, but not the first

2023-06-07 Thread Kaveh Bazargan
in replying, had to go out. > I’m a bit confused as to how the 2 PLAC can be put back to correct line > > Not every line in the file begins with 2 PLAC > > Dave > > On Tuesday, June 6, 2023 at 4:29:21 PM UTC+1 Kaveh Bazargan wrote: > >> BTW to replace >> >> 2 PL

Re: Replacing all spaces in a line, but not the first

2023-06-06 Thread Kaveh Bazargan
BTW to replace 2 PLAC at start of lines when replacements have been done, replace: "^" -- start of line with "2 PLAC " On Tue, 6 Jun 2023 at 15:28, Kaveh Bazargan wrote: > Simplest might be first to remove all "2 PLAC " > > Then replace >

Re: Replacing all spaces in a line, but not the first

2023-06-06 Thread Kaveh Bazargan
een '129' and 'Haymarket' is skipped, but not essential]* > > 2 PLAC 24 Long Street Chester Cheshire > 2 PLAC 24, Long, Street, Chester, Cheshire > > 2 PLAC Meadows, Lowestoft, England > 2 PLAC Meadows Lowestoft England > > Thanks > On Tuesday, June 6, 2023 at 2:48:07 PM UTC+1

Re: Replacing all spaces in a line, but not the first

2023-06-06 Thread Kaveh Bazargan
egroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-bf72-c4394a8fee8fn%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/8ef6eae3-ca41-4f50-bf72-c4394a8fee8fn%40googlegroups.com?utm_medium=email_so

Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Kaveh Bazargan
upport, please email "supp...@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 gro

Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Kaveh Bazargan
ving 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/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b28

Re: Extracting lines that don’t contain tabs

2023-06-03 Thread Kaveh Bazargan
unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/7CF51CE5-0442-435A-9C8A-11722DB8B0E1%40gmail.com > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalley.io> ● Twitter <https://twitter.com/riv

Re: Formatting srt files

2023-05-30 Thread Kaveh Bazargan
view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/7396a4a9-3342-42d2-a283-f7612204e380n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/7396a4a9-3342-42d2-a283-f7612204e380n%40googlegroups.com?utm_medium=email_source=footer> > . > --

Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-25 Thread Kaveh Bazargan
essage 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.co

Re: Use Keyboard Maestro (KM) to Automate BBEdit Menu Steps

2023-05-22 Thread Kaveh Bazargan
ick question: Is it possible to set up a shortcut keystroke in > BBEdit that (when pressed) will run my newly created TextFactory? > > Yours, > > Mark > > On 22 May 2023, at 10:20, Kaveh Bazargan wrote: > > Hi Mark > > I think Text Factory is indeed what you need

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

2023-05-15 Thread Kaveh Bazargan
y Nickless' via BBEdit Talk < > bbedit@googlegroups.com> wrote: > > > > Thank you once again, Kaveh - that works perfectly! > > Best wishes, > > Andy > > > > On Monday, 15 May 2023 at 09:49:21 UTC+1 Kaveh Bazargan wrote: > > Try this one. It ma

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

2023-05-15 Thread Kaveh Bazargan
but *no left or right > arrows in the result* such as *<* or *>?* > *(I WOULD also like to include punctuation, such as exclamation and > question marks, brackets, etc, - if I can)* > *.*Thanks - Andy > On Monday, 15 May 2023 at 09:22:25 UTC+1 Kaveh Bazargan wrote: > >> Hi

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

2023-05-15 Thread Kaveh Bazargan
how can > I include text like 22nd, 1st, or even a number on its own (1234 for > example?). > > I try to make my posts clear, but equally, I don't want to bore people > with excess detail. > > On Monday, 15 May 2023 at 07:45:43 UTC+1 Kaveh Bazargan wrote: > >> Ah

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

2023-05-15 Thread Kaveh Bazargan
mal. > > 123Any lines which begin as this one does, will not be > changed. > (The number being any combination of 1-3 digits). > > I hope that's more clear. Apologies for the lack of clarity. > Andy > > On Sunday, 14 May 2023 at 20:11:38 UTC+1 Kaveh Bazargan wrote: > >> Sorr

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

2023-05-14 Thread Kaveh Bazargan
> Andy > > On Sunday, 14 May 2023 at 17:57:20 UTC+1 Kaveh Bazargan wrote: > >> 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 < >> bbe..

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

2023-05-14 Thread Kaveh Bazargan
s.google.com/d/msgid/bbedit/4455d2a7-6efe-4183-903e-ea1baa8e091dn%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalley.io> ● Twitter <https://twitter.com/rivervalley1000> ● LinkedIn <https://

Re: search for a string of letters, digits, punctuation and even html...

2023-05-10 Thread Kaveh Bazargan
No problem Andy. Feel free to ping me directly if need be... On Wed, 10 May 2023 at 11:44, 'Andy Nickless' via BBEdit Talk < bbedit@googlegroups.com> wrote: > My grateful thanks to *Holger Bartel* and *Kaveh Bazargan* for their > swift responses! > Yes, the question mark makes a

Re: search for a string of letters, digits, punctuation and even html...

2023-05-10 Thread Kaveh Bazargan
oups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/10720E34-F5BF-40CB-A809-FA75EF135599%40googlemail.com > <https://groups.google.com/d/msgid/bbedit/10720E34-F5BF-40CB-A809-FA75EF135599%40googlemail.com?utm_medium=email_source=footer> >

Re: Search and replace dilemma

2023-04-21 Thread Kaveh Bazargan
ge 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/msg

Re: Eliminate Chinese Text

2023-03-21 Thread Kaveh Bazargan
ups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/5bc239e8-c8df-498b-bae0-94792def4447n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/5bc239e8-c8df-498b-bae0-94792def4447n%40googlegroups.com?utm_medium=email_source=

Re: Need help simplifying apple script with grep

2023-03-18 Thread Kaveh Bazargan
>>> escaped when trying to match a literal ‘*’. So that's the first ‘\’. Then >>> Applescript needs that ‘\’ escaped, so we get ‘\\*’. >>> >>> The BBEdit User Manual (PDF download via the Help menu) has a good >>> discussion of this. >>> >>&

Re: Need help simplifying apple script with grep

2023-03-17 Thread Kaveh Bazargan
; The BBEdit User Manual (PDF download via the Help menu) has a good > discussion of this. > > — Bruce > > _bruce__van_allen__santa_cruz_ca_ > > > > > > > On Mar 17, 2023, at 7:23 AM, Kaveh Bazargan > wrote: > > > > Quick question: For App

Re: Need help simplifying apple script with grep

2023-03-17 Thread Kaveh Bazargan
> > > --- > > 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 disc

Re: GREP pattern to replace the first element with a tab

2021-03-22 Thread Kaveh Bazargan
>>> >>> Although it could bog down with very big files. >>> >>> >>> -- >>> Best Regards, >>> Chris >>> >>> -- >>> This is the BBEdit Talk public discussion group. If you have a feature

Re: GREP pattern to replace the first element with a tab

2021-03-21 Thread Kaveh Bazargan
>>> >>> Although it could bog down with very big files. >>> >>> >>> -- >>> Best Regards, >>> Chris >>> >>> -- >>> This is the BBEdit Talk public discussion group. If you ha

Re: GREP pattern to replace the first element with a tab

2021-03-21 Thread Kaveh Bazargan
s 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/B75B0684-484C-4034-AF69-D0731A9FE590%40gmail.com > <https://groups.google.com/d/msgid/bbedit/B75B0684-484C-4034-AF69-D0731A9FE590%4

Re: Copying a search pattern to a new document

2020-02-27 Thread Kaveh Bazargan
Yes, should have mentioned Pattern Playground. I have not used that enough yet. Too many good features in BBEdit 13! -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter <https://twitter.com/kaveh1000> • LinkedIn <https://w

Re: Copying a search pattern to a new document

2020-02-27 Thread Kaveh Bazargan
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: < > https://twitter.com/bbedit> > --- > You received this message because you are subscribed to the Google Groups

Re: Can I _find_ "gremlins" instead of "zap"ping them?

2020-02-23 Thread Kaveh Bazargan
Thank you Tom. And it was not my idea in the first place. I stole it some time back from here: https://catonmat.net/my-favorite-regex and put a not (^) in front of it. But it is so short and elegant I always remember it. ;-) -- Kaveh Bazargan PhD Director River Valley Technologies <h

Re: Can I _find_ "gremlins" instead of "zap"ping them?

2020-02-23 Thread Kaveh Bazargan
b visit > https://groups.google.com/d/msgid/bbedit/CADjGqHuycUTuGcyiVHoHnPGiX2RwFPGKLespqy%2BgyN5-14Reag%40mail.gmail.com > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter <https://twitter.com/kaveh1000> • L