5 wild-card numbers

General discussions about Advanced Find and Replace
Post Reply
kburton
Posts: 1
Joined: Sun Apr 22, 2007 2:57 am

5 wild-card numbers

Post by kburton » Sun Apr 22, 2007 3:06 am

I am trying to search for a string of code surrounding 5 variable numbers. I'm new to using your wild cards and would appreciate some help. I want to search for (the 12345 stands for the varying numbers that need to be found):

Code: Select all

cart.bcentral.com/ShoppingCart/AddToCart.asp?MID=5094302&PID=12345&CHID=101">


and replaced it with (yes, I am using actual "X"s):

Code: Select all

www.1shoppingcart.com/app/netcart.asp?MerchantID=103067&ProductID=XXXXXXX">


I saw some information about turning on Modifier S, but that didn't work for me. Do I need to turn off all of the other others?

Thanks,
KBurton

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Sun Apr 22, 2007 8:24 pm

Go to main menu - Action - Options - Batch Replace
check "Modifier G"

Go to Batch replace tab, check on "Use regular expressions".
Put into the grid, search for:

Code: Select all

cart\.bcentral\.com/ShoppingCart/AddToCart\.asp.*PID=(\d+).*>


Replace with:

Code: Select all

www.1shoppingcart.com/app/netcart.asp?MerchantID=103067&ProductID=$1">

That's all I verified it works perfectly.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest