preg_match('/itemname+[0-9]?/i', $name, $match);
Trying to extract the number from itemname, e.g. "itemname4" or "itemname193" would give me 4 or 193, but the number is optional so if it was just "itemname" I would have a blank result... Any help? My regex is not so hot... thanks!