[COOK-2439] Correcting regular expression

http://tickets.opscode.com/browse/COOK-2439