Page 1 of 1

5 wild-card numbers

Posted: Sun Apr 22, 2007 3:06 am
by kburton
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

Posted: Sun Apr 22, 2007 8:24 pm
by Abacre
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.