This question already has answers here: Closed 10 years ago. Possible Duplicate: Converting ereg expressions to preg
I am trying to leave only the prefix (WST in the example below) and the number.Any suffix and file extension should be removed.This should leave me with the product code in tact.
This question already has answers here: 开发者_JAVA百科 How can I convert ereg expressions to preg in PHP?