Re: grep search - insert character before search result

2019-04-28 Thread bruce linde
doh! thx for the reminder... i typically use the \1 because i’m searching for (and replacing) several things simultaneously. bruce linde 5 happiness webmaster 510.530.1331 office 510.206.9730 mobile http://www.5happy.com bli...@5happy.com > On Apr 28, 2019, at 5:33 PM, Tom Robinson wrote:

Re: grep search - insert character before search result

2019-04-28 Thread Tom Robinson
In addition to bruce’s answer: You can replace with \t& The ampersand represents the entire found string, so you’re replacing the 4 digits with a tab followed by the original 4 digits. Cheers > On 2019-04-29, at 09:53, gebseng wrote: > > In bbedit 12, I am using grep in the Find window to s

grep - add character before search result instead of replace

2019-04-28 Thread gebseng
Hi everyone, In the Find window, I use grep to search for 4-digit numbers: \d\d\d\d , that works fine. Now, in Replace, I don't want to replace the search results with someting else, but rather I want to ADD at tab (\t) BEFORE each occurrence of \d\d\d\d. Is there a way to do that? best, geb

Re: grep search - insert character before search result

2019-04-28 Thread bruce linde
find: (\d\d\d\d) replace: \t\1 > On Apr 28, 2019, at 2:53 PM, gebseng > wrote: > > Hi everyone, > > In bbedit 12, I am using grep in the Find window to search for this pattern: > \d\d\d\d (number with four digits), which works fine. > > However, now I do not want

grep search - insert character before search result

2019-04-28 Thread gebseng
Hi everyone, In bbedit 12, I am using grep in the Find window to search for this pattern: \d\d\d\d (number with four digits), which works fine. However, now I do not want to replace the search results with something lese, but rather I would like to insert a tab (\t) BEFORE each occurence of \d

Re: Advanced Grep querys

2019-04-28 Thread Phil Emery
Right - here's a typical html file - they're all pretty well like this On Saturday, 27 April 2019 10:55:36 UTC-4, Patrick Woolsey wrote: > > > > On Apr 27, 2019, at 10:01, Phil Emery > wrote: > > > > thanks. I assumed as BBEdit could detect the div (you click on the start > of Main-content and

Re: Advanced Grep querys

2019-04-28 Thread Phil Emery
Right. Here is an example from a basic internal page. They're mostly the same structure wise - everything different from one page to another is in the "main-content" div. If Hubspot was honest, it would allow you to export your content as an XML file but I guess they don't want to make it easy