FIX: Added parameter array checking

Updated preg_match_all parameters.