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 Injection1991
Moto Guzzi 1000 Quota Injection1992
Moto Guzzi 1000 S1990
Moto Guzzi 1000 S1991


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 Ronald J Kimball
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 Quota Injection1991
> Moto Guzzi 1000 Quota Injection1992
> Moto Guzzi 1000 S1990
> Moto Guzzi 1000 S1991

> 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 Injection1991
> Moto Guzzi 1000 Quota Injection1992
> Moto Guzzi 1000 S1990
> Moto Guzzi 1000 S1991

Find:
(\d{4})$

Replace:

\t\1

Ronald

-- 
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 S1991


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.