changes contains to matches

contains does not support regex