Possible to duplicate one paragraph after another throughout a doc?

2023-06-01 Thread Michael Heth
I have a long document that I now want to revise extensively. But I would 
like to have the original paragraphs inline with the new as a reference for 
what I was up to originally.

Each paragraph starts with an equals sin and a space

=(sp)my text

Is there a way to do this?

Original Outline

= Para 1

= Para 2

= Para 3

= Para 4

Ready for the revisions.

= Para 1

= Para 1

= Para 2

= Para 2

= Para 3

= Para 3

= Para 4

= Para 4

Thanks for any tips/advice/info.

M./

-- 
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 @bbedit on Twitter: 
--- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/f379bcc5-041f-47ad-b606-60350e93b39an%40googlegroups.com.


Re: Need a little GREP help

2022-10-04 Thread Michael Heth



> On Oct 4, 2022, at 5:37 AM, Kaveh  wrote:
> 
> Search:
> (.+)
> Replace:
> \1

Thanks much, worked like a champ.

I’ll have to try and wade through the docs on GREP again and see if it catches 
this time.

Or, Or, 

The folks at BB could do a 5 minute YT video showing various examples of common 
tasks and then billions of BBEdit users would all get a leg up.

Just sayin’

Thanks again.

M.

-- 
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 @bbedit on Twitter: 
--- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/745945A7-23A3-4BDA-B9E6-F197A46BA5E9%40gmail.com.


Need a little GREP help

2022-10-04 Thread Michael Heth
Say Folks,

Have been trying to get my head around GREP for many years and never quite 
get it.

I've asked for help before and folks were able to give me the cryptic code 
to get my little task in the done column.

So, I have a list with over 450 lines like these

1995 DUCATI M600 Monster
1995 DUCATI M900 Monster
1995 DUCATI Superbike 748 Biposto / SP
1995 DUCATI Superbike 916 Biposto / Senna

and I need them to end up like this

1995 DUCATI M600 Monster
1995 DUCATI M900 Monster
1995 DUCATI 
Superbike 748 Biposto / SP
1995 DUCATI 
Superbike 916 Biposto / Senna

Any tips.help is much appreciated.

Thanks,

M./

-- 
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 @bbedit on Twitter: 
--- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2d19291b-ac2f-41f4-9517-ee5cad8d2505n%40googlegroups.com.


another dummy GREP plea

2010-05-11 Thread Michael Heth



I know there must be a super simple way to get what I need but I'm  
bleary eyed from thinking about it.


I have a series of lines with this type of data

Moto Guzzi 1000 Quota Injection1991
Moto Guzzi 1000 Quota Injection1992
Moto Guzzi 1000 S1990
Moto Guzzi 1000 S1991
Moto Guzzi 1000 S1992
Moto Guzzi 1000 S1993
Moto Guzzi 1000 Strada1994
Moto Guzzi 1100 California EV1998
Moto Guzzi 1100 Sport Corsa2000
Moto Guzzi 1100 Sport2000
Moto Guzzi 1200 Sport ABS2007
Moto Guzzi 1200 Sport ABS2008


All I want to do is put a tab before the years which are always the  
last 4 characters in the line


Moto Guzzi 1000 Quota Injectiontab1991
Moto Guzzi 1000 Quota Injectiontab1992
Moto Guzzi 1000 Stab1990
Moto Guzzi 1000 Stab1991


Any tips/advice is appreciated.

Thanks,

M./

Michael Heth
m...@serversmiths.com




--
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 this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Re: another dummy GREP plea

2010-05-11 Thread Michael Heth


On May 11, 2010, at 11:05 AM, Ronald J Kimball wrote:


On Tue, May 11, 2010 at 11:04:06AM -0700, Michael Heth wrote:


I have a series of lines with this type of data
Moto Guzzi 1000 Stab1991


Find:
(\d{4})$

Replace:

\t\1

Ronald


Worked like a champ, much appreciated.

Thanks,

M./

Michael Heth
m...@serversmiths.com




--
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 this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


alternative to /r for linebreaks?

2009-11-08 Thread Michael Heth



This is probably rudimentary but I can't find what I need so I thought  
I would ask.

I am massaging 11K emails that were in a proprietary archive database.  
They were exported as a large text file. The field delimiters were  
high ASCII characters as there might be embedded tabs and CRs. So now  
I am trying to get the emails ready for importing into a proper  
database. I need to find something that will preserve linebreaks but  
that isn't something that would be recognized as the end of the record  
like the CR.

I want to search for CR and replace with something else. Then I can  
change my field delimiters and add back the CRs at the end and I  
should be good to go.

But I only know \t and \r, is there a sequence for what I need?

Thanks for any help/tips.

M./



--~--~-~--~~~---~--~~
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 this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: still not grokking grep

2009-10-28 Thread Michael Heth


On Oct 28, 2009, at 7:43 AM, William Reveal wrote:

 Just want to applaud Bill for this explanation. It may well help  
 Michael in his journey to grok grep.

 Bill


Yes, I meant to chime in and thank him for the tutorial and I will  
refer to it before I whine for help again.

But I did receive a direct reply from Kerri the night I posted and his  
suggestion/code


 If your data set is really as simple as this, and there are no other
 pointy brackets in your data, just turn grep on and in the search box,
 do

 (.*?)

 and replace with nothing.

 (This assumes that there are no line breaks within the HTML code...)


worked perfectly.

Some of the other suggested more elaborate code did not.

So I am very thankful for the help offered by all.

But I must say I really do think that this is a major hole in the  
BBEdit feature set. I have upgraded over the years primarily on  
principle (because I use BBEdit a lot) but other than the  
Textfactories I do not see very many added functions that I am making  
use of from about the 8.0 version onwards (I use maybe 7-10 of the  
menu commands).

A Grep builder should be a feature in the next release since that is  
probably the function/capability that is most requested on this list.

That would be a new very useful capability and (if I was BB sales  
manager) allow for pitching the product to people who are not coders  
but (like me) just need to shovel a lot of text around on an ongoing  
basis.

Anyway, thanks for all the help.

And if you ever get offered a data export from a company in Germany  
allow 2-3 times the effort to clean out the chaff ;-).

M./


--~--~-~--~~~---~--~~
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 this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Grep, remove link code?

2009-09-25 Thread Michael Heth


On Sep 25, 2009, at 12:49 AM, Christopher Stone wrote:


 On Sep 24, 2009, at 12:54, Michael Heth wrote:
 I very much appreciate the help above but I guess I was lax in my
 example text.
 __

 Hey Michael,

 Find:
 (?s)(brPart Number:)a.+?(b\d{3}.\d{3} \d{2} 02/b)/a

 Replace:
 \1\2

 I think I missed a couple of the details of this thread.  Are the part
 number strings going to vary in size?

On this batch I don't think so. I'll look. It's all one brand and the  
brand is from Germany so I would think they would have them all the  
same.

Basically I have a well-meaning, self-taught database programmer who  
has a site that imports products I can sell. His output is 65-85% tabs/ 
CRs due to all the looping he does along with his own sites code. And  
he won't give me a data export and just says I should get it off his  
site.

I have a text factory that cleans out all the chaff except for this  
one link but in the one product brand there is 1000 part no.s which  
means a 1000 links.

I appreciate the help I've been given and will report back which of  
the GREP worked.

M./



--~--~-~--~~~---~--~~
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 this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Grep, remove link code?

2009-09-24 Thread Michael Heth


On Sep 23, 2009, at 5:50 PM, le...@gmail wrote:


 On 23-Sep-2009, at 17:33, Michael Heth wrote:
 a href=Linecard.cfm? 
 do=detailq_part=650%2E494%2000%2002b650.494
 00 02/b/a


 b650.494 00 02/b

 Find: ^.*b([^]+)/b.*$
 Replace \1


I very much appreciate the help above but I guess I was lax in my  
example text. The part I need to mod is what I posted but those links  
are strewn throughout a large page and so the code above removes more  
than I need and breaks some formatting. Below is a large slug of what  
I'm trying to work with. Maybe there's a just a tweeze that would help  
me.

Again, thanks for any pointers/examples.

M./

I need the line below

brPart Number:a href=Linecard.cfm? 
do=detailq_part=650%2E494%2000%2002b650.494 00 02/b/a

  to end up as

brPart Number:b650.494 00 02/b


/form
/td
/tr
tr
td align=LEFT valign=TOP nowrapYAM/td
td align=LEFT valign=TOP nowrap
Bag mounts XV750/1100 w/sissybar
brPart Number:a href=Linecard.cfm? 
do=detailq_part=650%2E494%2000%2002b650.494 00 02/b/a
table border=0 width=400 cellspacing=4 cellpadding=2  
bordercolor=#445B87 style=font-size: x-small; font-family: sans- 
serif;
trtd
b
Special Order
/b
/td/tr
/table
/td
td align=RIGHT valign=TOP nowrap
$385.30
/td
td align=LEFT valign=TOP nowrap
form target=paypal action=https://www.paypal.com/cgi-bin/webscr;  
method=post
input type=hidden name=business value=d...@elefantadventurebikes.com 

input type=hidden name=on0 value=650.494 00 02
input type=hidden name=item_name value=Hepco and Becker mounts  
XV750/1100 
input type=hidden name=amount value=385.30

  input type=hidden name=add value=1
input type=hidden name=cmd value=_cart


--~--~-~--~~~---~--~~
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 this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---