<?php $pattern = '/[^\w]bored\s/'; if (preg_match($pattern, 'I am bored on saturday, I will lear programing')) { echo 'Bored is present'; } else { echo 'Not bored string'; }
You have javascript disabled. You will not be able to edit any code.