Driver code
strr = " baaabab " NEW_LINE pattern = " * * * * * ba * * * * * ab " NEW_LINE char pattern [ ] = " ba * * * * * ab " NEW_LINE char pattern [ ] = " ba ▁ * ▁ ab " NEW_LINE char pattern [ ] =   " a * ab NEW_LINE if ( stringmatch ( strr , pattern , len ( strr ) , len ( pattern ) ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT pattern2 = " a * * * * * ab " ; NEW_LINE if ( stringmatch ( strr , pattern2 , len ( strr ) , len ( pattern2 ) ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT