^(?=.*\bPerl\b)(?=.*\bdevelopment\b) Perl development: match ^(?=.*\bPerl\b)(?=.*\bsucks\b) Perl sucks: no match