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

2024-04-19 Thread Rainer Krug
Thanks Kerry and Jean - they look great. I will try both in real-world cases soon and come back if there are major problems I can't solve (likely any which involve modifying the regex...). The regex will be used for text files with max about 100 lines - so a visual check afterwards is possible

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

2024-04-18 Thread jj
Oops, previous regex will flag : "tomato-sauce" or "mayonnaise-sauce" This one is a bit more strict: (?<=\s)"[\s\N{U+00A0}]*([^\s\N{U+00A0}"-]+?)[\s\N{U+00A0}]*" But it will still flag (see the space after tomato-sauce) : "tomato-sauce " or "mayonnaise-sauce" There might be more edge cases, so

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

2024-04-18 Thread Rainer Krug
Sure. Should be removed: (single words without whitespace or "-") "singleword" -> singleworls "Hello" -> Hello " Hello" -> Hello [whitespace after removal of " do not matter] " Hello " -> Hello "Hello " -> Hello Should NOT be removed: (strings with whitespace or "-" except ), i.e. remain

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

2024-04-18 Thread Kaveh Bazargan
can you be more specific? What is the determining factor? - Exactly "this" > this - Only single words pls give some examples of before and after so we can see logic. thanks. On Thu, 18 Apr 2024 at 08:04, Rainer Krug wrote: > Hi > > I had a regex but can't find it anymore (I found the

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

2024-04-18 Thread Rainer Krug
Hi I had a regex but can't find it anymore (I found the "Manage Pattern" only now - it always reminds me of Google...). Could somebody give me a regex which removes the `"` around "this" word, but not "this word"? Thanks Rainer -- This is the BBEdit Talk public discussion group. If you

Re: Search & Replace

2021-11-15 Thread R B Cohen
GEDitCom finally replied that there is option to turn the code off. Had no idea! So that deletes needing to replace the 1 _PLACE and the unique id 1 _GCID. I'm left with the 1 AFN. Will try your suggestion. On Monday, November 15, 2021 at 8:49:06 PM UTC-5 listmei...@gmail.com wrote: > On Nov

Re: Search & Replace

2021-11-15 Thread Christopher Stone
> On Nov 15, 2021, at 15:18, R B COHEN wrote: > > 1 _GCID 94D0C28F-7346-4AC7-96D1-147294BADAF1 Hey R B, Is this the start of the line? Are these always _GCID numbers? Is the hyphenated alphanumeric string always 36 characters? Something like this: Find:

Search & Replace

2021-11-15 Thread R B COHEN
1 _GCID 94D0C28F-7346-4AC7-96D1-147294BADAF1 FIND: Entire line where alphanumic (with hyphen) varies per. REPLACE: with nothing, move next line up in its place. Have over 61,000 of them! So once I know it works with Replace, would like to use Replace All. I then need to Find & Replace: FIND:

Re: Need some help with multiple search-replace Apple script

2020-12-16 Thread Christopher Stone
Android, @iOS, @Perl # s!("[^"]+?") = "([^"]+?)";!$2!ig; s!%@!%1\$s!ig; print; # In this case I'm scarfing up the whole file before doing the search/replace.

Re: Need some help with multiple search-replace Apple script

2020-12-14 Thread Mathias
Hi Chris, sure! Below are three example rows the way they work on Android, followed by their equivalent IOS counterparts. Switch account Automatic check-in to %1$s Choose location "switch_header" = "Switch account"; "automaticCheckinTo" = "Automatic check-in to %@";

Re: Need some help with multiple search-replace Apple script

2020-12-14 Thread Christopher Stone
On 12/14/2020, at 07:38, Mathias mailto:math...@lightlabs.se>> wrote: > … Isn't the script expecting every row to begin with "login_infolabel" as it > is written right now? The variable names in the files are different on every > row. Or am i missing something obvious? Hey Mathias, Please

Re: Need some help with multiple search-replace Apple script

2020-12-14 Thread Mathias
Hi, work is crazy, so believe it or not, with all else going on as you know, I haven't had time to look at this until now.. Checking the Perl script, i have one question - (since my perl knowledge is very limited). Isn't the script expecting every row to begin with "login_infolabel" as it is

Re: Need some help with multiple search-replace Apple script

2020-10-29 Thread Mathias
Guys, thanks a bunch for great feedback! I will take your stuff and make it work i'm sure. If not i'll bother you here again! :) The reason for me taking AppleScript is that i was doing stuff before i had BBEdit and i kinda knew it, that's all. On Thursday, October 15, 2020 at 3:26:55 PM UTC+2

Re: Need some help with multiple search-replace Apple script

2020-10-15 Thread John Delacour
On 13 Oct 2020, at 06:54, Mathias af Jochnick wrote: > i'm trying to make 2 scripts to convert between IOS and Android i18n formats > to work. I've gotten Android -> IOS to work, but the other way around is a > challenge. > > Basically, for each row in a file i want to convert >

Re: Need some help with multiple search-replace Apple script

2020-10-13 Thread jj
Mathias, It would be way simpler to just use the "Find and Replace" window using the below regular expressions and replacement strings. In the find window check the "Grep" and "Wrap around" checkboxes and leave the other checkboxes unchecked. If it works for your purpose in the "Find"

Need some help with multiple search-replace Apple script

2020-10-13 Thread Mathias af Jochnick
Hi there, i'm trying to make 2 scripts to convert between IOS and Android i18n formats to work. I've gotten Android -> IOS to work, but the other way around is a challenge. Basically, for each row in a file i want to convert *"login_infoLabel" = "Do you need help? Press here.”;* to *Do you need

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

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

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

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

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

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

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

Re: Search/Replace with GREP wildcards

2019-12-23 Thread Charles Nichols
Thank you very much. That worked perfectly. Charles Nichols www.charlesnichols.com On Mon, Dec 23, 2019 at 12:58 PM Massimo Rainato wrote: > In a 3 step yes. > 1) change first part fix with > 2) change lastpart with > 3) change (.*) with none > > Il giorno lun 23 dic 2019

Re: Search/Replace with GREP wildcards

2019-12-23 Thread Sam Hathaway
On 23 Dec 2019, at 11:44, Charles Nichols wrote: Is it possible to find and delete every instance of Program (PDF) in a file, using wildcards instead of "20141201-IlPreteDISIS", which is a name of a PDF, that will be different for each instance, but always in the pattern "Date-Name"?

Re: Search/Replace with GREP wildcards

2019-12-23 Thread Massimo Rainato
In a 3 step yes. 1) change first part fix with 2) change lastpart with 3) change (.*) with none Il giorno lun 23 dic 2019 alle 17:45 Charles Nichols ha scritto: > Is it possible to find and delete every instance of > > class="internal">Program (PDF) > > in a file, using

Re: Search/Replace with GREP wildcards

2019-12-23 Thread Charles Nichols
Is it possible to find and delete every instance of Program (PDF) in a file, using wildcards instead of "20141201-IlPreteDISIS", which is a name of a PDF, that will be different for each instance, but always in the pattern "Date-Name"? On Wednesday, May 18, 2016 at 6:20:32 PM UTC-4,

Re: Hi all! I have a strange search/replace situation & sometimes looking at GREP makes me cross-eyed!

2019-06-04 Thread Kerri Hicks
You've gotten some good answers about how to do precisely what you say you want to do, and that's great. I'm curious, though, if you might want something different. When you're working with a CSV, enclosing a field in double-quotation marks preserves/respects the commas within that field. If you

Re: Hi all! I have a strange search/replace situation & sometimes looking at GREP makes me cross-eyed!

2019-06-04 Thread 'John Springer' via BBEdit Talk
Here's another way to deal with it. You had 11 columns all together. The first 3 are comma-delimited. So are the last 7. Column four is the one that may have additional commas in it. You can restore the columns like this: Find:

Re: Hi all! I have a strange search/replace situation & sometimes looking at GREP makes me cross-eyed!

2019-06-03 Thread Aethon
That is simple and clever. Thanks man! -George On Monday, June 3, 2019 at 10:30:33 AM UTC-4, ThePorgie wrote: > > In your sample data would the patten be inconsistent regarding the number > of commas that need to be replaced? I'm thinking that might be the case > looking at your sample...Also

Re: Hi all! I have a strange search/replace situation & sometimes looking at GREP makes me cross-eyed!

2019-06-03 Thread ThePorgie
In your sample data would the patten be inconsistent regarding the number of commas that need to be replaced? I'm thinking that might be the case looking at your sample...Also if you want to replace the commas in the bolded copy what is it you want to replace them with? Not knowing the number

Hi all! I have a strange search/replace situation & sometimes looking at GREP makes me cross-eyed!

2019-06-03 Thread Aethon
I have a big file that I had exported from the office as a CSV (forgetting that I had done the first part a while back as tab-separated). So now I have a list where some of the text columns contains commas and this throws the whole structure/order off. Here is a sample of the data.

Re: Wildcard on search/replace

2018-01-30 Thread Tom Robinson
Yep :] Though you’re not doing anything with the text inside the tags, so it’s redundant to capture it (with the brackets): .*? > On 2018-01-31, at 09:12, Jaime Guitart Vilches > wrote: > > What I really would like to do is to erase anything between those tags >

Re: Wildcard on search/replace

2018-01-30 Thread Patrick Woolsey
On 1/30/18 at 3:12 PM, jaime.guit...@gmail.com (Jaime Guitart Vilches) wrote: What I really would like to do is to erase anything between those tags (including the tags themselves), so I understand I would have to use this: Find: (.*?) Replace: [and here leave blank] That should do the

Re: Wildcard on search/replace

2018-01-30 Thread Jaime Guitart Vilches
Well this may be very helpful, thank you very much. What I really would like to do is to erase anything between those tags (including the tags themselves), so I understand I would have to use this: Find: (.*?) Replace: [and here leave blank] I am very thankful, if this works you've just saved

Re: Wildcard on search/replace

2018-01-30 Thread Fletcher Sandbeck
I would add to look at the "Grep Reference" in BBEdit Help for documentation of the syntax. Grep is like wildcards on steroids. [fletcher] > On Jan 30, 2018, at 6:31 AM, Kerri Hicks wrote: > > Well, it depends on what you want to do to those elements. But here's an >

Re: Wildcard on search/replace

2018-01-30 Thread Kerri Hicks
Well, it depends on what you want to do to those elements. But here's an example (and note the "grep" box is checked at the bottom). This will take the string this is what the number 5 looks like and will return this is what the number looks like Does that help at all? More info

Wildcard on search/replace

2018-01-30 Thread Jaime Guitart Vilches
Hello I'm new to this and I hope I can get some help with what I expect/hope to be a basic lack of knowledge on my side... I'm editing a large database and I need to replace a series of strings that are clearly delimited with tags . I'm wondering if there's a wildcard character I can use to

Re: search replace wildcard

2017-10-14 Thread Oliver Boermans
Hi Sharb, try this (with [✓] Grep) Search: '[A-Z] Replace: 'a where [A-Z] will match any single uppercase letter On 14 October 2017 at 14:48, Sharb wrote: > I can't get basic wildcard \w to work in Find/Replace, but might be doing > something very basic incorrectly. > I'm

search replace wildcard

2017-10-14 Thread Sharb
I can't get basic wildcard \w to work in Find/Replace, but might be doing something very basic incorrectly. I'm brand new to this work and am working my way through Practical Computing for Biologists. My Mac is OS X El Capitan 10.11.6 and I've downloaded BBEdit as TextWrangler (the book's

Re: Customer post: How to quickly create html form-fields via grep search & replace

2017-02-25 Thread Bruce Linde
here are some canned/stored grep patterns i use all the time... i have a bunch. all of the ones related to forms start with FORMS:, all of the one related to php start with PHP:, etc. FORMS: generate radio buttons USAGE: any amount of field names, one per line. select all and then REPLACE

Re: Customer post: How to quickly create html form-fields via grep search & replace

2017-02-25 Thread Rick Yentzer
That was really helpful. If also gives ideas for other ways to use grep and replace together in html and the like. On Thursday, February 23, 2017 at 2:53:14 PM UTC-5, Patrick Woolsey wrote: > > Good afternoon folks, > > We just heard from a customer who's written a handy tutorial > about

Customer post: How to quickly create html form-fields via grep search & replace

2017-02-23 Thread Patrick Woolsey
Good afternoon folks, We just heard from a customer who's written a handy tutorial about creating HTML form fields using BBEdit, so I'm posting a link here for anyone who may find this helpful: How to quickly create html form-fields using BBEdit’s GREP search and replace function -- by Ole

Re: Search/Replace with GREP wildcards

2016-05-18 Thread Christopher Stone
On May 18, 2016, at 15:20, Steve Piercy wrote: > Another option is the BBEdit reference "Searching with Grep", which I > bookmarked and view in a web browser because the Apple Help viewer has a > terrible UI.

Re: Search/Replace with GREP wildcards

2016-05-18 Thread Luis Speciale
Le 18/05/2016 à 22:20, Steve Piercy a écrit : On 5/18/16 at 3:11 PM, listmeis...@suddenlink.net (Christopher Stone) pronounced: On May 18, 2016, at 13:08, 1611mac <1611...@gmail.com> wrote: Awesome! I learned a lot just from that one simple little blurb!

Re: Search/Replace with GREP wildcards

2016-05-18 Thread Steve Piercy
On 5/18/16 at 3:11 PM, listmeis...@suddenlink.net (Christopher Stone) pronounced: On May 18, 2016, at 13:08, 1611mac <1611...@gmail.com> wrote: Awesome! I learned a lot just from that one simple little blurb! __

Re: Search/Replace with GREP wildcards

2016-05-18 Thread 1611mac
Awesome! I learned a lot just from that one simple little blurb! Thank you very much! Perfect! Over 4k lines changed in a couple seconds! On Wednesday, May 18, 2016 at 1:37:54 PM UTC-4, Sam H. wrote: > > Hi, > > Find: ="#(.*)" > Replace: ="#\U\1\E" > > Hope this helps. > -sam > > On 18

Search/Replace with GREP wildcards

2016-05-18 Thread 1611mac
Is it possible to "Replace" wildcard strings? For example, given this "FIND" string entered in Find and Replace: ="#.*" How would I "REPLACE" the wildcard text found with the same text set in all caps? Example: ="#foo" becomes ="#FOO" -- This is the BBEdit Talk public discussion

Re: Text Factory search/replace ignores content.opf file in ePubs?

2014-12-20 Thread Robert A. Rosenberg
At 16:37 -0800 on 12/19/2014, Heulwen Jones wrote about Text Factory search/replace ignores content.opf file in ePu: Hi there, I produce ePubs from Adobe InDesign CC. I then open the ePub in BBEdit (version 10.5.12) and run a number of 'cleanup' search/replaces across the ePub using BBEdit

Text Factory search/replace ignores content.opf file in ePubs?

2014-12-19 Thread Heulwen Jones
are made to the content.opf file even though I've tested my search/replace strings and they should make changes to that file? I've tried running the text factory using 'all file types' as well as 'text files only' but it still doesn't work. Is anyone else having this problem or know how to solve

Soft Wrap and search replace project file

2013-08-10 Thread Joshua Wilson
Hello, I work with very large log files and I would like to work on their formatting a bit. I open up the a folder and then there are several other folders inside of it. So I drag the main folder to the BBEdit icon and open it up as a project. The main files I'm interested in are xyz.log,

Re: Soft Wrap and search replace project file

2013-08-10 Thread Oliver Taylor
On Aug 10, 2013, at 1:34 PM, Joshua Wilson joshmit...@gmail.com wrote: So is there any way to either fix my preferences to do the softwrap for the project I can think of a few things that might help: 1. Set BBEdit's default to soft-wrap 2. Set a hot key for your soft-wrap preference But

Re: Applescripting Search/Replace Strings Question

2012-09-24 Thread Kendall Conrad
The script seemed to work for me. When I add the line display dialog SS / RS it shows the correct values for me. -Kendall On Sunday, September 23, 2012 9:53:57 PM UTC-4, Christopher Stone wrote: Hey Folks, This is simple: tell *application* BBEdit set {search string:SS, replacement

filters/groupings for search/replace

2012-07-26 Thread JT
Hey all, I really like BBedit's ability to save search/replace presets but am finding that my selection is getting a bit big. Would it be possible to have search groups/filter. That way when I am working on a particular project only certain saved search/replace saves are found? -- You

Re: Scripting search/replace

2011-08-23 Thread Christopher Stone
On Aug 22, 2011, at 17:20, verdonv wrote: After looking through the BBEdit script library, I realize the problem is that the 'replace' actually returns an integer that represents the number of instances of the pattern changed, and not the changed string. Right. I explained that already.

Re: Scripting search/replace

2011-08-23 Thread verdonv
Right.  I explained that already.  Perhaps my explanation wasn't clear? No it was fine. It just took a bit to sink in ;-) I also explained that the major problem remaining is that clippings EAT trailing whitespace even if they themselves CONTAIN whitespace.  That takes a little working

Re: Scripting search/replace

2011-08-23 Thread John Delacour
At 13:54 -0700 20/08/2011, verdonv wrote: Hi Chris, Thanks for the feedback and the example. I like the simpler pattern too :-) As to why I am activating it from a clipping, well because it is part of a bigger set of clippings. So far as I can see you can use shell scripts in clippings

Re: Scripting search/replace

2011-08-23 Thread John Delacour
At 09:03 -0400 20/08/2011, Verdon Vaillancourt wrote: I am writing a tiny applescript, that I invoke with a clipping, to do a search/replace on a string and return the string. I'm mostly there. My string might look like this... C EM Am7F The result looks like this... [C] [EM

Re: Scripting search/replace

2011-08-22 Thread verdonv
After looking through the BBEdit script library, I realize the problem is that the 'replace' actually returns an integer that represents the number of instances of the pattern changed, and not the changed string. I know it seems silly, but given this, and the way that Clippings work, I think I'll

Scripting search/replace

2011-08-20 Thread Verdon Vaillancourt
Hi, I am writing a tiny applescript, that I invoke with a clipping, to do a search/replace on a string and return the string. I'm mostly there. My string might look like this... C EM Am7F The result looks like this... [C] [EM] [Am7][F] My script looks like this... tell

Re: Scripting search/replace

2011-08-20 Thread Christopher Stone
On Aug 20, 2011, at 08:03, Verdon Vaillancourt wrote: I am writing a tiny applescript, that I invoke with a clipping, to do a search/replace on a string and return the string. I'm mostly there. __ Hey Verdon, Any special

Re: Scripting search/replace

2011-08-20 Thread verdonv
together in one toolbox, so to speak. best rgds, verdon On Aug 20, 2:16 pm, Christopher Stone listmeis...@thestoneforge.com wrote: On Aug 20, 2011, at 08:03, Verdon Vaillancourt wrote: I am writing a tiny applescript, that I invoke with a clipping, to do a search/replace on a string

Re: Scripting search/replace

2011-08-20 Thread Christopher Stone
On Aug 20, 2011, at 15:54, verdonv wrote: Thanks for the feedback and the example. I like the simpler pattern too :-) __ Hey Verdon, You bet. As to why I am activating it from a clipping, well because it is part of a bigger

Re: Scripting search/replace

2011-08-20 Thread verdonv
Yes, that's the sort of direction I was trying to go with the 'as alias' thing... My thoughts, a) create a string from the contents of the selection, b) run the replace on the string, c) return the string, which the clipping will replace the original selection with... I just don't know much about

Re: Sitewide search/replace to change root-relative links to document-relative links

2011-06-29 Thread Rick
Each of the use statements means that a module is required. Some may already be installed with your system, but for the others you need to install a cpan client. I recommend cpanminushttp://search.cpan.org/%7Emiyagawa/App-cpanminus-1.4008/lib/App/cpanminus.pm. That requires a command-line

Re: Sitewide search/replace to change root-relative links to document-relative links

2011-06-26 Thread BBunny
Thanks, Rick. I wish it were 'nuff said. After investigating how to run a perl script, I ran it from the terminal. It responded (and I quote): Can't locate Getopt/Declare.pm in @INC (@INC contains: /Library/Perl/ Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /

Re: Sitewide search/replace to change root-relative links to document-relative links

2011-06-26 Thread BBunny
What I need is a script that will do the following: 1. Note the location of file 'A' relative to the site root. 2. Find in file 'A' the first root-relative or absolute link to another file (file 'B') on the site. (Root-relative: / my_root_directory/path/file; Absolute:

Re: Sitewide search/replace to change root-relative links to document-relative links

2011-06-17 Thread BBunny
old new *.c # #-- search=$1 replace=$2 files=$3 for file in $files do         cp $file $file.bak         sed s/$search/$replace/g $file tempsar         mv tempsar $file done end cut

Re: Sitewide search/replace to change root-relative links to document-relative links

2011-06-16 Thread BBunny
Still hoping for a response... On May 29, 12:06 am, BBunny fran...@cherman.com wrote: Can anyone suggest a grep search/replace or other technique for changing root-relative links of a Web site to document-relative? The site is site-root is identified in BBEdit's preferences as a Web site

Re: Sitewide search/replace to change root-relative links to document-relative links

2011-06-16 Thread Simdude
. # # when using wildcards for the filename, place in quotes # # example: sar old new *.c # #-- search=$1 replace=$2 files=$3 for file in $files do cp $file $file.bak sed s/$search/$replace/g $file

Search Replace

2011-05-29 Thread jj200...@gmail.com
Hi all I would like to find lines like below and replace them with blank lines, I have read the GREP tutorial but had no succes PLEASE help p class=text08-06-2011 15:49:25/p p class=text08-06-2011 15:54:45/p p class=text08-06-2011 15:56:13/p Also is it possible to script so I can replace

Re: Search Replace

2011-05-29 Thread Doug McNutt
At 07:23 -0700 5/29/11, jj200...@gmail.com wrote: Hi all I would like to find lines like below and replace them with blank lines, I have read the GREP tutorial but had no succes PLEASE help p class=text08-06-2011 15:49:25/p p class=text08-06-2011 15:54:45/p p class=text08-06-2011 15:56:13/p Also

Re: Search Replace

2011-05-29 Thread Christopher Stone
On May 29, 2011, at 09:23, jj200...@gmail.com wrote: Hi all I would like to find lines like below and replace them with blank lines p class=text08-06-2011 15:49:25/p p class=text08-06-2011 15:54:45/p p class=text08-06-2011 15:56:13/p Also is it possible to script so I can replace

Save a series of GREP search/replace as macro?

2010-06-17 Thread Bill Mounce
I am trying to find a way to run a series of GREP search and replace routines. Is this what Scripts are for? If so, is there a sample of a simple GREP search and replace that I can learn from? (I am not asking about how to do GREP, but to save the GREP search/replaces inside BBEdit.) For

Re: Save a series of GREP search/replace as macro?

2010-06-17 Thread gabe . roth
I am trying to find a way to run a series of GREP search and replace routines. Is this what Scripts are for? Text Factories might be what you're looking for. See p. 127 in the manual. gr. If so, is there  a sample of a simple GREP search and replace that I can learn from? (I am not

Re: Save a series of GREP search/replace as macro?

2010-06-17 Thread Rich Siegel
On Thursday, June 17, 2010, Bill Mounce billmou...@gmail.com wrote: I am trying to find a way to run a series of GREP search and replace routines. From your description, I think a Text Factory would do what you need. Chapter 5 (Text Transformations) in the user manual contains a section

Re: Save a series of GREP search/replace as macro?

2010-06-17 Thread Bill Mounce
Thanks so much. I had wondered what TextFactory was. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to

Re: Save a series of GREP search/replace as macro?

2010-06-17 Thread Bill Mounce
Thanks so much. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit

Is there a way to avoid folding expansion when search/replace selected text only?

2010-05-06 Thread Michael Wiik
I note that when doing a search/replace across a file or even just 'selected text only' that all folds are expanded. This makes it tedious as I need to re-fold everything to select the text for the next search/replace (think several thousand lines of html in nearly-identical groupings

Re: TextFactory Search/Replace 1st match only

2010-03-09 Thread Matt Martini
Well, I'm not sure how to do this in a textfactory, but it is trivial in perl. Below is a sample perl program that does what you want. To make this production just change DATA to on the while line and use it as a unix filter. (you also don't need anything below # desired output) Good Luck,

TextFactory Search/Replace 1st match only

2010-03-03 Thread yogert909
Hi, I am writing a textfactory which uses part of a line as a column header. I want to duplicate the first line of data and create the headers from that. Is there a way to tell BBedit to find/replace only the 1st match and not all matches? Here is the format: There are several lines of random

Re: The modeless search/replace dialog also has a problem

2009-03-25 Thread rowen
plan to use a lot and ditch any invalid ones). -- Russell On Mar 20, 11:21 pm, Bill Hernandez m...@mac-specialist.com wrote: The modeless search/replace dialog also has a problem. Let's say that I search for : Grep : \$this-form-\$form_common_output Replace : \$this-form-\$form_common_output

Re: The modeless search/replace dialog also has a problem

2009-03-25 Thread Rod Buchanan
and it almost always never remembers replace strings. :) It would be nice if it worked the same both ways. I CC'd support in case I'm right right to consider this a bug report and/or feature request. On Mar 20, 11:21 pm, Bill Hernandez m...@mac-specialist.com wrote: The modeless search/replace

Re: Beginner here - Search Replace help!

2008-09-30 Thread Dennis Cox
On 9/30/08 3:24 AM, Patrick James [EMAIL PROTECTED] wrote: The book mentioned in BBEdit Help: Mastering Regular Expressions, 2nd Edition by Jeffrey E.F. Friedl. is top class and very good to get if you want to explore RegEx any further. Patrick http://www.patrickjames.co.uk Mr.

Re: Beginner here - Search Replace help!

2008-09-30 Thread Patrick James
Mr. Friedl has indeed been busy :) The third edition is the one I have as well. When I go to that web-page I see that there is a book called Regular Expression Pocket Reference by Tony Stubblebine which I think looks like a very useful book to have. Patrick http://www.patrickjames.co.uk

Re: Beginner here - Search Replace help!

2008-09-29 Thread Ewelk
  dialogue window. So what I was hoping to figure out is a way to wildcard the search replace, so that when it encounters a (*) it strips the parentheticals and appends ADDRESS at the end.  Also, a way to include those line breaks. To do just bit you might try: Find