jmace
10-27-2010, 05:43 PM
Hey! I'm trying to get this PCRE syntax right, but so far I can't get it to work. I have stings like this: (The parts in between the [ and ] are suppose be matched)
Please provide more data and resubmit. '[merchant_sku]' Merchant value: '[03/31096]' catalog value: '[]' '[manufacturer]' Merchant value: '[]' catalog value: '[Oriental Trading]' '[brand]' Merchant value: '[]' catalog value: '[]' '[item_name]' Merchant value: '[Bamboo Limbo Set]' catalog value: '[Bamboo 6' Foot Limbo Kit]' '[part_number]' Merchant value: '[]' catalog value: '[IN-34/64]'. For details, see http://website.com
Here is my REGEXP:
"/ '(.*?)' Merchant value: '(.*?)' catalog value: '(.*?)'/i"
It captures everything great, until it gets to the "Bamboo 6' Foot Limbo Kit" where it wants to stop at the 6' instead of the Kit'. I've tried adding something like (:?\. | ) to the end, but that just returns blanks for now obvious reasons. How can I get it past that 6' to where it is suppose to end?
Thanks!
Please provide more data and resubmit. '[merchant_sku]' Merchant value: '[03/31096]' catalog value: '[]' '[manufacturer]' Merchant value: '[]' catalog value: '[Oriental Trading]' '[brand]' Merchant value: '[]' catalog value: '[]' '[item_name]' Merchant value: '[Bamboo Limbo Set]' catalog value: '[Bamboo 6' Foot Limbo Kit]' '[part_number]' Merchant value: '[]' catalog value: '[IN-34/64]'. For details, see http://website.com
Here is my REGEXP:
"/ '(.*?)' Merchant value: '(.*?)' catalog value: '(.*?)'/i"
It captures everything great, until it gets to the "Bamboo 6' Foot Limbo Kit" where it wants to stop at the 6' instead of the Kit'. I've tried adding something like (:?\. | ) to the end, but that just returns blanks for now obvious reasons. How can I get it past that 6' to where it is suppose to end?
Thanks!