[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[StrongED] Re: Another S&R query



In article <04686bbf56.Alan.Adams@xxxxxxxxxxxxxxxxxxxxxx>,
   Alan Adams <alan@xxxxxxxxxxxxxxxx> wrote:
> Hi

> I have a text file containing things like

> FredFred0175423245789
> BillMany876542335778
> Joe FJoe F3457y89567268

> I want to remove the first part of the line IF it is duplicated 
> immediately afterwards.

> In the above, remove Fred from line 1, and Joe F from line 3.

> Can this be done?

Try
SEARCH:  {'A-Z'}+ {'a-z'}+ * @1  @01 REPLACE: @01

It gets part way there! Joe F is more difficult:

SEARCH:  {'A-Z'}1:1 {'a-z'}+ " " {'A-Z'}1:1 @1  @01 REPLACE: @01
finds Joe F...

I don't think you can do it in one! Fred may disagree!


-- 
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!

-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at
http://diy.Torrens.org/RO/StrongED/index.html