Checking the string follows a specified pattern Given pattern String “Red” “Green” “Black” “Black” x x y y Same Not same Same Same Not matched False w3resource.com