<?php
$testString = "Buy Widgets 20% discount with coupon code WID2010 by Friday";
preg_match("/(?=\w*[a-z])(?=\w*[0-9])\w+/i", $testString, $matches); ?>
PD9waHAKJHRlc3RTdHJpbmcgPSAiQnV5IFdpZGdldHMgMjAlIGRpc2NvdW50IHdpdGggY291cG9uIGNvZGUgV0lEMjAxMCBieSBGcmlkYXkiOwpwcmVnX21hdGNoKCIvKD89XHcqW2Etel0pKD89XHcqWzAtOV0pXHcrL2kiLCAkdGVzdFN0cmluZywgJG1hdGNoZXMpOwpwcmludF9yKCRtYXRjaGVzKTsKPz4=