Regular Expression

Write a javascript code to check whether the string contains the given pattern or not.

Output :