Checking the string follows a specified pattern Given pattern String “Red” “Red” “Black” “Black” x x y y Same Same Same Same Matched True w3resource.com