Re: Grep Find and Replace Issue

2024-05-10 Thread Kaveh Bazargan
>> Search: " (\d\d\.\d\d\.\d\d\d\d, \d\d:\d\d, )" >>>> replace: "\1" >>>> >>>> \1 replaces the first item in brackets found. >>>> >>>> On Wed, 8 May 2024 at 13:13, Marcus Abundis <55m...@gmail.com> wrote:

Re: Grep Find and Replace Issue

2024-05-10 Thread Marcus Abundis
;\1" >>> >>> \1 replaces the first item in brackets found. >>> >>> On Wed, 8 May 2024 at 13:13, Marcus Abundis <55m...@gmail.com> wrote: >>> >>>> Greetings, >>>> >>>> I am new to BBEdit (trying it out) an

Re: Grep Find and Replace Issue

2024-05-10 Thread Marcus Abundis
eah, you were MOST correct in thinking I did not understand Find and Replace roles used very different command strings. I did not see that explicitly stated in the user manual. Problem solved (at least I think so - it all still performs a bit screwy, I think . . . won't go into detail) [i

Re: Grep Find and Replace Issue

2024-05-09 Thread Kaveh Bazargan
\d\.\d\d\d\d, \d\d:\d\d, )" >> replace: "\1" >> >> \1 replaces the first item in brackets found. >> >> On Wed, 8 May 2024 at 13:13, Marcus Abundis <55m...@gmail.com> wrote: >> >>> Greetings, >>> >>> I am new to BBEd

Re: Grep Find and Replace Issue

2024-05-09 Thread Neil Faiman
lso feel I have a grasp of HOW wildcard Find and Replace commands are > SUPPOSED to work. > Using a Subpattern structure, as also suggested by Kaveh, such as " > (\d\d\.\d\d\.\d\d\d\d, \d\d:\d\d, )" does not seem to improve things. > What I am trying to accomplish does not seem

Re: Grep Find and Replace Issue

2024-05-09 Thread Marcus Abundis
t; \1 replaces the first item in brackets found. > > On Wed, 8 May 2024 at 13:13, Marcus Abundis <55m...@gmail.com> wrote: > >> Greetings, >> >> I am new to BBEdit (trying it out) and I have a problem in using the >> standard “Find and Replace” window in BBEd

Re: Grep Find and Replace Issue

2024-05-09 Thread Marcus Abundis
Hey Rich, Thanks much for looking at this issue! Okay, I closely read the material in Chapter 8 and explored the Pattern Playground, and I am pretty sure I understand what I read and saw. I also feel I have a grasp of HOW wildcard Find and Replace commands are SUPPOSED to work. Using a

Re: Grep Find and Replace Issue

2024-05-08 Thread Kaveh Bazargan
Try: Search: " (\d\d\.\d\d\.\d\d\d\d, \d\d:\d\d, )" replace: "\1" \1 replaces the first item in brackets found. On Wed, 8 May 2024 at 13:13, Marcus Abundis <55m...@gmail.com> wrote: > Greetings, > > I am new to BBEdit (trying it out) and I have a proble

Re: Grep Find and Replace Issue

2024-05-08 Thread Rich Siegel
On 8 May 2024, at 6:01, Marcus Abundis wrote: > Greetings, > > I am new to BBEdit (trying it out) and I have a problem in using the > standard “Find and Replace” window in BBEdit. Only the “Grep” and “Show > matches” boxes checked in that window (no other boxes checked), and

Grep Find and Replace Issue

2024-05-08 Thread Marcus Abundis
Greetings, I am new to BBEdit (trying it out) and I have a problem in using the standard “Find and Replace” window in BBEdit. Only the “Grep” and “Show matches” boxes checked in that window (no other boxes checked), and the situation unfolds as follows: TARGET STRING/FIELD: “ 29.12.2023, 10

Re: BBEdit - JXA - Find and Find and Replace

2024-01-30 Thread Jesse Shanks
I know that the BBEdit cats are busy making BBEdit 15 and stuff. But it was Patrick Woolsey himself who told me that someone from this group could probably provide a snippet for find or find and replace with JXA.. Thanks, Jesse On Wednesday, January 3, 2024 at 6:00:32 AM UTC-8 Jesse Shanks

BBEdit - JXA - Find and Find and Replace

2024-01-03 Thread Jesse Shanks
HI, I have not figured out how to do a JXA script to Find and Find and Replace in BBEdit. This little snippet fails miserably: bb = Application("BBEdit") result = bb.windows[0].find('Ancient Rome',{searchingIn:null ,options:{searchMode:'grep'}}) I could st

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

2023-05-15 Thread Kaveh Bazargan
+1 Bruce! On Mon, 15 May 2023 at 16:40, Bruce Van Allen wrote: > > On May 15, 2023, at 3:13 AM, 'Andy Nickless' via BBEdit Talk < > bbedit@googlegroups.com> wrote: > > > > Thank you once again, Kaveh - that works perfectly! > > Best wishes, > > Yay! > > For future reference, the best way to get

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

2023-05-15 Thread Bruce Van Allen
> On May 15, 2023, at 3:13 AM, 'Andy Nickless' via BBEdit Talk > wrote: > > Thank you once again, Kaveh - that works perfectly! > Best wishes, Yay! For future reference, the best way to get help is NOT to try diagnosing the problem into abstractions, but rather to provide a few before and aft

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

2023-05-15 Thread 'Andy Nickless' via BBEdit Talk
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 matches any characters > before colon, but not <> > > On Mon, 15 May 2023 at 09:41, 'Andy Nickless' via BBEdit

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

2023-05-15 Thread Kaveh Bazargan
Try this one. It matches any characters before colon, but not <> On Mon, 15 May 2023 at 09:41, 'Andy Nickless' via BBEdit Talk < bbedit@googlegroups.com> wrote: > Thanks Kaveh, > Look at this another way... > I want to search within ** and the colon*:* > > If I u

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

2023-05-15 Thread 'Andy Nickless' via BBEdit Talk
Thanks Kaveh, Look at this another way... I want to search within ** and the colon*:* If I use *.+?* it picks up everything, including stuff I don't want. Using *(\w+):* works brilliantly as long as there are no numbers or digits in the line of text - but I want to include these. So how can I se

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

2023-05-15 Thread Kaveh Bazargan
Hi Andy I suggest you give several examples of what should be picked up and made bold, and several of what should not be. Still not clear for me. ;-) On Mon, 15 May 2023 at 09:19, 'Andy Nickless' via BBEdit Talk < bbedit@googlegroups.com> wrote: > My grateful thanks to those who have patiently t

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

2023-05-15 Thread 'Andy Nickless' via BBEdit Talk
My grateful thanks to those who have patiently tried to help, but I think we're over-complicating it. (My apologies once more). It occurred to me just now that what I'm looking for, is lines of text and digits (but not html) between and the colon: Searching for *(\w+):* works well if there are n

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

2023-05-14 Thread Kaveh Bazargan
Ah, so no digit dependency at all, right? Does this work: Search: *(.+?):(.+)* replace: *\1:\2* On Sun, 14 May 2023 at 23:05, 'Andy Nickless' via BBEdit Talk < bbedit@googlegroups.com> wrote: > No Kaveh - Unfortunately Fletcher's reply doesn't help. > I'll try to clarify. > > In this case, I wan

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

2023-05-14 Thread Rick Gordon
kless' Via Bbedit Talk wrote in an email entitled "Find and Replace items which do NOT contain a simple pattern...": 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 consist

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, 'And

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 (\d{1,

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 firs

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 < bbedit@googlegr

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 vari

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 simpl

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 publ

Re: Find and Replace pattern that includes a variable string of text

2021-11-07 Thread jj
anything touching regular expression patterns you should check the excellent BBEdit's menu Help > BBEdit Help > Grep Reference. HTH, Jean Jourdain On Sunday, November 7, 2021 at 4:18:07 PM UTC+1 ralph.w...@gmail.com wrote: > Greetings all. First time post. > > I need t

Find and Replace pattern that includes a variable string of text

2021-11-07 Thread Ralph Hawkins
Greetings all. First time post. I need to find and replace a consistent block of HTML that wraps around a variable string of text, like this: XX adiuhkjashfutrhat XX and XX hjsutqpds XX etc. I need to replace XX with Y resulting in this

Re: Find and Replace multiple queries at once

2021-11-07 Thread Pu Koh
Thanks Chris, Perl is too advance for my head to wrap around! I ended up creating a canonize query for each size, and another to replace X with a URL (I can then easier edit the URL per job). Create a text factory for each size that run a set of canonize query. filtering by filename with t

Re: Find and Replace multiple queries at once

2021-11-06 Thread Christopher Stone
> On Nov 05, 2021, at 22:43, Pu Koh wrote: > Thanks all. I shall look into the suggestions. > Here's what I'm trying to do. > I'm creating HTML 5 banners, and need to inject code for the click tags. > The code looks like this: Hey There, Here's a super basic proof-of-concept. -- Best Regards, C

Re: Find and Replace multiple queries at once

2021-11-05 Thread Pu Koh
t;tick", stage); } //Code to support hidpi screens and responsive scaling. AdobeAn.makeResponsive(false,'both',false,1,[canvas,anim_container,dom_overlay_container]); AdobeAn.compositionLoaded(lib.properties.id); fnStartAnimation(); } On Saturday, 6 N

Re: Find and Replace multiple queries at once

2021-11-05 Thread Pu Koh
at 06:00, Pu Koh wrote: > > > Is there a function to run multiple find and replace patterns instead of > doing it one at a time? > > -- > > Hey There, > > Personally I would most often use a Text Filter and a little Perl, > although it

Re: Find and Replace multiple queries at once

2021-11-05 Thread Christopher Stone
> On Nov 05, 2021, at 06:00, Pu Koh wrote: > > Is there a function to run multiple find and replace patterns instead of > doing it one at a time? Hey There, Personally I would most often use a Text Filter and a little Perl, although it depends upon the context. (See appended

Re: Find and Replace multiple queries at once

2021-11-05 Thread jj
Hi Pu Koh, You could use BBEdit's Text > Canonize ... command. Check "Canonize Using Grep Patterns" in the manual page 140. With this sample transformation file (Note that find and replace expressions are separated by a tab): # -*- x-bbedit-canon-case-sensitive: 1; x-bbedit

Re: Find and Replace multiple queries at once

2021-11-05 Thread Bruce Van Allen
Pu Koh wrote on 2021-11-05 4:00 AM: Is there a function to run multiple find and replace patterns instead of doing it one at a time? Look into BBEdit's Text Factories. For more advice from this group, post an example of what you want to do, with before and after samples. --     -

Find and Replace multiple queries at once

2021-11-05 Thread Pu Koh
Is there a function to run multiple find and replace patterns instead of doing it one at a time? -- 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

Re: Find and replace

2021-07-08 Thread Patrick Woolsey
On Jul 08, 2021, at 10:16, Robert Fairbrother wrote: > > Excellent - it is indeed! > Thank you very much Kerri. > I won't ask how the engine works - I'll just keep driving! > Thanks again. In case you ever need to manipulate such characters again, please see the section titled "Special Chara

Re: Find and replace

2021-07-08 Thread Robert Fairbrother
gt;> On Thursday, July 8, 2021 at 11:31:55 AM UTC+1 jj wrote: >> >>> Did you check the "Grep" checkbox in the "Find" window ? >>> >>> On Thursday, July 8, 2021 at 12:16:38 PM UTC+2 Arejay wrote: >>> >>>> Hi, >>>> New to

Re: Find and replace

2021-07-08 Thread Kerri Hicks
; >> Did you check the "Grep" checkbox in the "Find" window ? >> >> On Thursday, July 8, 2021 at 12:16:38 PM UTC+2 Arejay wrote: >> >>> Hi, >>> New to group and BBEdit. >>> I need to find and replace a line return with \\ plus a

Re: Find and replace

2021-07-08 Thread Arejay
I did, it replaces the line return with \(line return) On Thursday, July 8, 2021 at 11:31:55 AM UTC+1 jj wrote: > Did you check the "Grep" checkbox in the "Find" window ? > > On Thursday, July 8, 2021 at 12:16:38 PM UTC+2 Arejay wrote: > >> Hi, >> Ne

Re: Find and replace

2021-07-08 Thread jj
Did you check the "Grep" checkbox in the "Find" window ? On Thursday, July 8, 2021 at 12:16:38 PM UTC+2 Arejay wrote: > Hi, > New to group and BBEdit. > I need to find and replace a line return with \\ plus a line return i.e. > \r with \\\r > but it doesn

Find and replace

2021-07-08 Thread Arejay
Hi, New to group and BBEdit. I need to find and replace a line return with \\ plus a line return i.e. \r with \\\r but it doesn't work. I'm guessing this is because they are special characters. Can anyone help please? Thanks -- This is the BBEdit Talk public discussion group. If

Re: Find and replace

2020-04-08 Thread GP
Why are you trying to split up the \d+/\d+ capturing? Also, you have to take car with the "/" character since that can be a regular expression delimiter with the PCRE engine BBEdit uses for regular expression searching. The following regular expression matches your example: \s*\s+ and the re

Re: Find and replace

2020-04-08 Thread regis leon
I can have value =1 or value = 0 for another pattern but I retried the command and it works I don't know why didn't works the first time Le mercredi 8 avril 2020 14:06:23 UTC+2, Jean-Christophe Helary a écrit : > > What about you change > > value="1" > > into > > value="0.99" > > and > >

Re: Find and replace

2020-04-08 Thread Jean-Christophe Helary
What about you change value="1" into value="0.99" and value="0" into value="0.01" without worrying about the rest ? Jean-Christophe > On Apr 8, 2020, at 20:09, regis leon wrote: > > Hello > > on a XML I need to change > > value="1"/> >

Find and replace

2020-04-08 Thread regis leon
Hello on a XML I need to change to this But I need to keep those values between "

Re: Find and Replace, one-by-one, Multi-file

2019-02-19 Thread Christopher Stone
On 02/16/2019, at 18:51, Jason Morgan mailto:m.jason.mor...@gmail.com>> wrote: > I have many plaintext source code files, and when performing a version > change, I have to go through all of the files, find where the version number > is embedded, and replace it with the next version number. Somet

Re: Find and Replace, one-by-one, Multi-file

2019-02-17 Thread Fletcher Sandbeck
I do this sort of thing fairly often updating old syntax or cloning a site. I like to see every replacement unless I'm doing something really trivial. If there is something you find yourself replacing often you can add an identifier so you can do a global search/replace without as much worry. Fo

Find and Replace, one-by-one, Multi-file

2019-02-16 Thread Jason Morgan
Hello, I have many plaintext source code files, and when performing a version change, I have to go through all of the files, find where the version number is embedded, and replace it with the next version number. Sometimes, the version number is the same as some other arbitrary number in the

Re: Help with find and replace please

2018-06-05 Thread @lbutlr
On 5 Jun 2018, at 10:46, Yannick Duguay wrote: > It's getting close i thing but it places the at the end... > > Exemple: L’enf class="exercice-input">t > > What i need: L’enf class="exercice-input">t > > Any idea why? typo? Find: _[^>]*[^ ]* replace: & -- Friends help you move. Real fri

Re: Help with find and replace please

2018-06-05 Thread David Wagner
What was suggested: Find: _[^>]*[^ ]* replace: &>/span> (the _ is a space) Could be change to: Find: (\s+[^>]*[^\s]* replace: \1 If there can be one space, then usually you can have more than one, so using \s+ covers your spaces. So this should function for you... Wags ;) WagsWorld Hebrews

Re: Help with find and replace please

2018-06-05 Thread Yannick Duguay
It's getting close i thing but it places the at the end... Exemple: L’enft What i need: L’enft Any idea why? Le mardi 5 juin 2018 12:31:54 UTC-4, Lewis Butler a écrit : > > On 5 Jun 2018, at 08:19, Yannick Duguay > wrote: > > > > Muroom > > Find: _[^>]* class="exercice-input">[^ ]* > repl

Re: Help with find and replace please

2018-06-05 Thread @lbutlr
On 5 Jun 2018, at 08:19, Yannick Duguay wrote: > > Muroom Find: _[^>]*[^ ]* replace: &>/span> (the _ is a space) Should do what you said you wanted. -- "If it's a hobby to us and a job to you, why are you doing such a shoddy job?" - Linus Torvalds to Microsoft -- This is the BBEdit Talk p

Help with find and replace please

2018-06-05 Thread Yannick Duguay
Hi, i need to place a span around the following html code where the characters in red change everytime. How can i find all these strings and place a before and a after? Also there is a space before and after each instance, i guess i have to include this space in the search too? Muroom Thanks

Re: Find and Replace help please

2018-05-19 Thread Christopher Stone
On 05/18/2018, at 11:10, Matthew London mailto:mlon...@gmail.com>> wrote: > Turns out there are sometimes multiple lines both within my KEEP text and in > my DELETE text. Hey Matthew, That's easy enough. Let's start off by using a test string that provides better feedback: &&& TEXT STRING I

Re: Find and Replace help please

2018-05-18 Thread Kerri Hicks
OK, then try this, instead. ###(.|\n)*?&&& --Kerri On Fri, May 18, 2018 at 12:17 PM Matthew London wrote: > Hi Again, > > Turns out there are sometimes multiple lines both within my KEEP text and > in my DELETE text. > > le: > &&& > Line or Lines to be KEPT > ### > Line or Lines to be DELETED

Re: Find and Replace help please

2018-05-18 Thread Matthew London
Hi Again, Turns out there are sometimes multiple lines both within my KEEP text and in my DELETE text. le: &&& Line or Lines to be KEPT ### Line or Lines to be DELETED &&& Line or Lines to be KEPT ### etc. Grateful for your help On Wednesday, May 2, 2018 at 12:51:20 PM UTC-7, Kerri Hicks wrote

Re: Find and Replace help please

2018-05-04 Thread Matthew London
Thank you Chris, Kerri and Sam. Got what I need. Much appreciated. On Thursday, May 3, 2018 at 10:16:36 PM UTC-7, Christopher Stone wrote: > > On 05/02/2018, at 12:25, Matthew London > > wrote: > > I have a file with the following: > > &&& > TEXT STRING I WANT TO KEEP > ### > TEXT STRING I WANT T

Re: Find and Replace help please

2018-05-03 Thread Christopher Stone
On 05/02/2018, at 12:25, Matthew London mailto:mlon...@gmail.com>> wrote: > I have a file with the following: > > &&& > TEXT STRING I WANT TO KEEP > ### > TEXT STRING I WANT TO DELETE > &&& > TEXT STRING I WANT TO KEEP > etc, > > Where there is a linebreak after &&&, ###, and all text strings H

Re: Find and Replace help please

2018-05-02 Thread Kerri Hicks
Use the Find dialog and turn on the "Grep" switch... 1) I have questions about this one. Are the lines to be kept and the lines to be deleted always alternating? (e.g. there's always one to be kept, always followed by one and only one to be deleted?) If not, I'd probably do this one in two steps (

Re: Find and Replace help please

2018-05-02 Thread Sam Hathaway
To delete `###` and subsequent line: Find: `###\r.*\r` Replace: (empty) Grep: on Then, to delete lingering `&&&` line: Find: `&&&\r` Replace: (empty) Grep: off Hope this helps! -sam On 2 May 2018, at 13:25, Matthew London wrote: > Hi, > I have a file with the following: > > > &&& > TEXT STRIN

Find and Replace help please

2018-05-02 Thread Matthew London
Hi, I have a file with the following: &&& TEXT STRING I WANT TO KEEP ### TEXT STRING I WANT TO DELETE &&& TEXT STRING I WANT TO KEEP etc, where there is a linebreak after &&&, ###, and all text strings I need to process this text in two different ways; 1) I would like to remove ALL of the fol

Re: Multiple Find and Replace at once

2018-04-10 Thread Christopher Stone
On 04/10/2018, at 16:01, Mike W mailto:ymwie...@gmail.com>> wrote: > This tool looks like the answer > The only thing missing is the ability to move to the next line. > > Anyone know if there is a way to have it move to next line? Hey Mike, Use the linefeed token \n. find-text \nReplac

Re: Multiple Find and Replace at once

2018-04-10 Thread Christopher Stone
text 1 of front text document options {starting at top:true} replace "~~NM1*82*1*" using "↵ PROVIDER NAME: " searching in text 1 of front text document options {starting at top:true} end tell ---- On 04/10/2018, a

Re: Multiple Find and Replace at once

2018-04-10 Thread Mike W
gt; Is there a search pattern that would be able to do a Multiple Find and > Replace at once? > > > I've never used the feature myself, so I might be misunderstanding how it > works, but your task sounds like what the new Canonize command is for. (See > the manual, BBEdit v1

Re: Multiple Find and Replace at once

2018-04-10 Thread Fletcher Sandbeck
ce "~NM1\*87\*2~N3" using "↵ BILLING ADDRESS: " searching in text 1 > of front text document options {search mode:grep, starting at top:true} > > [fletcher] > > > > > On Apr 10, 2018, at 11:39 AM, Mike W wrote: > > > > Is there a

Re: Multiple Find and Replace at once

2018-04-10 Thread Patrick Woolsey
On 4/10/18 at 3:47 PM, ymwie...@gmail.com (Mike W) wrote: Are you talking about the chrome add-on? We cant do this due to HIPAA (they require access to all your files) If you dont mean the add on I dont understand On Tuesday, April 10, 2018 at 2:54:38 PM UTC-4, Sam Hathaway wrote: I think y

Re: Multiple Find and Replace at once

2018-04-10 Thread Mike W
e this helps! > -sam > > On 10 Apr 2018, at 14:39, Mike W wrote: > > Is there a search pattern that would be able to do a Multiple Find and > Replace at once? > > I have a large file and dozens of items that need to be replaced. > > Here are some examples: > > f

Re: Multiple Find and Replace at once

2018-04-10 Thread Mike W
using "↵ BILLING ADDRESS: " searching in text > 1 of front text document options {search mode:grep, starting at top:true} > > [fletcher] > > > > > On Apr 10, 2018, at 11:39 AM, Mike W > > wrote: > > > > Is there a search pattern that would

Re: Multiple Find and Replace at once

2018-04-10 Thread Jeffrey Jones
On Apr 10, 2018, at 2:39 PM, Mike W wrote: > > Is there a search pattern that would be able to do a Multiple Find and > Replace at once? I've never used the feature myself, so I might be misunderstanding how it works, but your task sounds like what the new Canonize command is

Re: Multiple Find and Replace at once

2018-04-10 Thread Fletcher Sandbeck
rch mode:grep, starting at top:true} [fletcher] > On Apr 10, 2018, at 11:39 AM, Mike W wrote: > > Is there a search pattern that would be able to do a Multiple Find and > Replace at once? > > I have a large file and dozens of items that need to be replaced. > > Here are s

Re: Multiple Find and Replace at once

2018-04-10 Thread Sam Hathaway
I think you can do this with a Text Factory: ![](cid:CDCAE431-6A62-4FCA-9871-85EC1D2FE63A@munkynet.org "Screen Shot.png") Hope this helps! -sam On 10 Apr 2018, at 14:39, Mike W wrote: Is there a search pattern that would be able to do a Multiple Find and Replace at once? I have a

Multiple Find and Replace at once

2018-04-10 Thread Mike W
Is there a search pattern that would be able to do a Multiple Find and Replace at once? I have a large file and dozens of items that need to be replaced. Here are some examples: find: "~NM1*87*2~N3*" and replace with "↵ BILLING ADDRESS: " find: "~DMG*D8*&quo

Re: Batch Find and replace within []

2018-04-06 Thread regis leon
Thx Will try it -- 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 be

Re: Batch Find and replace within []

2018-04-05 Thread regis leon
I'm trying to clean a document, by deleting all lines starting by [ and finishing by ] exemple 1 00:03:16,440 --> 00:03:16,480 [Benjo DiMeo • 3 avr. à 18:22] "Non, pas vraiment." 2 00:03:17,000 --> 00:03:17,040 [Benjo DiMeo • 3 avr. à 18:20] "Tu as une bonne main ?" 3 00:03:20,720 --> 00:

Re: Batch Find and replace within []

2018-04-05 Thread Tom Robinson
You’re trying to bulk delete lines in a single document? Just use Process Lines Containing as Rich said, and tell it to delete matched lines. Cheers > On 2018-04-06, at 08:45, regis leon wrote: > > Thx a lot this is exactly what I need . > > But to you know how to batch delete those empty l

Re: Batch Find and replace within []

2018-04-05 Thread regis leon
Thx a lot this is exactly what I need . But to you know how to batch delete those empty lines after using this command ? -- 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

Re: Batch Find and replace within []

2018-04-05 Thread Rich Siegel
On 4/5/18 at 9:54 AM, regisl...@gmail.com (regis leon) wrote: I try to found a solution to delete all lines starting by [ and finishing by ] to clean a document How I can do that in TextWrangler? The "Process Lines Containing" command will do the job, with a Grep pattern that looks somethi

Batch Find and replace within []

2018-04-05 Thread regis leon
Hello I try to found a solution to delete all lines starting by [ and finishing by ] to clean a document How I can do that in TextWrangler? Thx -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebon

Re: Help: How to Find and Replace Tags

2018-01-11 Thread bcross
Thank you. The Find worked well, but when I clicked Replace I received this message: "The replacement string couldn’t be computed, because the previous Grep search did not succeed (application error code: 12003)." I did get it to work, but only by clicking Replace All. On Thursday, January 11, 2

Re: Help: How to Find and Replace Tags

2018-01-11 Thread Kerri Hicks
You're missing the parenthesis around the contents of the element. You have to make it a capture group, so that you can reuse it. I think this will do what you want it to. --Kerri​ On Thu, Jan 11, 2018 at 4:54 PM, bcross wrote: > I want to find all instances of this tag in my document: > .*?

Re: Help: How to Find and Replace Tags

2018-01-11 Thread Jean-Christophe Helary
> On Jan 12, 2018, at 6:54, bcross wrote: > > I want to find all instances of this tag in my document: > .*? ([^<]*) > and replace it with: > .*? \1 Everything you need to know is in the regex chapter of the BBEdit manual. Jean-Christophe Helary

Help: How to Find and Replace Tags

2018-01-11 Thread bcross
I want to find all instances of this tag in my document: .*? and replace it with: .*? But this does not work. What is the correct way to do this? -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebo

Re: BBEdit Find and replace using grep help

2017-03-28 Thread Nikao
Thank you! On Tuesday, March 28, 2017 at 3:49:58 PM UTC-5, Tom Robinson wrote: > > That’s an easy one :] > > Search for this: > > ^.+$ > > ^ says look for '’ at beginning of line > . look for any character > + …one or more times > $ says look for '’ at end of line > > Cheers > > > > On

Re: BBEdit Find and replace using grep help

2017-03-28 Thread Tom Robinson
That’s an easy one :] Search for this: ^.+$ ^ says look for '’ at beginning of line . look for any character + …one or more times $ says look for '’ at end of line Cheers > On 2017-03-29, at 08:55, Nikao wrote: > > I am very new to Grep and was wondering if some one could help with this

BBEdit Find and replace using grep help

2017-03-28 Thread Nikao
I am very new to Grep and was wondering if some one could help with this. I want to replace the whole line of code that starts with: and ends with In the middle the content will not be the same in every document. That is why I want to be able to find a line that starts and ends like that an

Re: How to Undo Multi-File Find and Replace

2017-02-27 Thread Bill Kochman
Thank you for your response David. However, as I noted yesterday — my local time — I already took care of the problem by starting all over. It took me about an hour to get things right, and even better than before. Kind regards, Bill K. > On Feb 27, 2017, at 5:26 PM, David Wagner wrote: > >

Re: How to Undo Multi-File Find and Replace

2017-02-27 Thread David Wagner
ext links with that one small oversight while performing the final > multi-file find and replace. > > If the link had pointed to the same page, it would have been very easy to fix > using the #BASENAME# placeholder, and a nifty little shell script that my > friend Jim Derry wrote f

Re: How to Undo Multi-File Find and Replace

2017-02-26 Thread Bill Kochman
files, pointed to the next chapter in a book in the Bible. In other words, each HTML document had previous and next links. I broke the next links with that one small oversight while performing the final multi-file find and replace. If the link had pointed to the same page, it would have been

Re: How to Undo Multi-File Find and Replace

2017-02-26 Thread Bruce Linde
got backups? On Sunday, February 26, 2017 at 2:09:35 PM UTC-8, Tom Robinson wrote: > > That was my thought, but looks like OP managed to change text which varied > for each link, to a fixed string in all the files :[ > > > > On 2017-02-27, at 10:39, Jean-Christophe Helary < > jean.christ...

Re: How to Undo Multi-File Find and Replace

2017-02-26 Thread Tom Robinson
That was my thought, but looks like OP managed to change text which varied for each link, to a fixed string in all the files :[ > On 2017-02-27, at 10:39, Jean-Christophe Helary > wrote: > > You can use a regex to fix the broken links :) There's plenty of hope. > > Now what it the pattern of

Re: How to Undo Multi-File Find and Replace

2017-02-26 Thread Jean-Christophe Helary
> So go ahead and tell me that I just have to go back and start all over again > with a fresh copy of the files, because there is no way to undo a multi-file > find and replace. You can use a regex to fix the broken links :) There's plenty of hope. Now what it the pattern of thos

How to Undo Multi-File Find and Replace

2017-02-26 Thread Bill Kochman
I kind of suspect what I am going to be told, but let me ask anyway with a glimmer of hope. I have just spent a few hours cleaning up the HTML code in about 1256 docs in one of my virtual host’s directories. I just did a final multi-file find and replace, and then realized when I got a broken

Re: Find and Replace many paragraphs between 2 unique phrases

2016-03-03 Thread Luis Speciale
A variation: (?s)(?<=\>)(.+?)(?=\<) But it will fail if you have code between comments Le 02/03/2016 23:05, Bill Walker a écrit : Chris, Your code worked perfectly. "Good Job!” Thank You. On Tuesday, February 23, 2016 at 6:34:08 PM UTC-6, Christopher Stone wrote: On Feb 23, 201

Re: Find and Replace many paragraphs between 2 unique phrases

2016-03-02 Thread Bill Walker
Chris, Your code worked perfectly. "Good Job!” Thank You. On Tuesday, February 23, 2016 at 6:34:08 PM UTC-6, Christopher Stone wrote: > > On Feb 23, 2016, at 17:52, Bill Walker > > wrote: > > I would like to replace large chunks of code bracketed by the same tags > in many files. I can repla

Re: Find and Replace many paragraphs between 2 unique phrases

2016-02-23 Thread Christopher Stone
On Feb 23, 2016, at 17:52, Bill Walker wrote: > I would like to replace large chunks of code bracketed by the same tags in > many files. I can replace large sections using start and ending tags … > provided I duplicate the +.*[/r] the correct number of times. ___

Find and Replace many paragraphs between 2 unique phrases

2016-02-23 Thread Bill Walker
I would like to replace large chunks of code bracketed by the same tags in many files . I can replace large sections using start and ending tags such as .*[\r]+.*[\r]+.*[\r]+.* provided I duplicate the +.*[/r] the correct number of times. Is there a better way? -- -- This is the BBEdit

  1   2   >