if (/\bAPI|APIN|UWI\s*\./) { $myvar = $something; }