title: Using Contains with a regex on input[type="submit"]
body: <p>I'm using Cypress to test a form which has an <code>input</code> of <code>type=&quot;submit&quot;</code>. When I select the element with</p>
  <pre class="lang-js prettyprint-override"><code>cy.contains('Submit new data')
  </code></pre>
  <p>it works, but when I use a regex</p>
  <pre class="lang-js prettyprint-override"><code>cy.contains(/Submit new data/)
  </code></pre>
  <p>I get error expected to find content: '/Save Changes/'.</p>
  <p>Can anyone help me, what is the problem with using regex in <code>.contains()</code>.</p>