Checking the string follows a specified pattern Given pattern String “Red” “Red” “Black” “Black” x x x x Same Same All are same But all are not same Not matched False w3resource.com