Remove everything after string

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
steve1040
Posts: 39
Joined: Fri Oct 13, 2006 2:19 am

Remove everything after string

Post by steve1040 »

I'm attempting to remove all the text following "=buy-new"

I've tried

Code: Select all

Find =buy-new+$

Replace with =buy-new
The find isn't finding the desired text - Please help
Thanks


What I have

/acura/?vehicleclass=newcar&intent=buy-new">Acura</a></li><li><a data-omn-page="buynew_${s.prop2}_make_alfa "
/alfa-romeo/?vehicleclass=newcar&intent=buy-new">Alfa Romeo</a></li><li><a data-omn-page="buynew_${s.prop2}_make_aston"
/aston-martin/?vehicleclass=newcar&intent=buy-new">Aston Martin</a></li><li><a data-omn-page="buynew_${s.prop2}_make_audi"
/audi/?vehicleclass=newcar&intent=buy-new">Audi</a></li><li><a data-omn-page="buynew_${s.prop2}_make_bentl"
/bentley/?vehicleclass=newcar&intent=buy-new">Bentley</a></li><li><a data-omn-page="buynew_${s.prop2}_make_bmw"
/bmw/?vehicleclass=newcar&intent=buy-new">BMW</a></li><li><a data-o

What I want

/acura/?vehicleclass=newcar&intent=buy-new
/alfa-romeo/?vehicleclass=newcar&intent=buy-new
/aston-martin/?vehicleclass=newcar&intent=buy-new
/audi/?vehicleclass=newcar&intent=buy-new
/bentley/?vehicleclass=newcar&intent=buy-new
/bmw/?vehicleclass=newcar&intent=buy-new
steve1040
Posts: 39
Joined: Fri Oct 13, 2006 2:19 am

Post by steve1040 »

I found the solution

buy-new".*\n
Post Reply