Needing to do some pattern matching with javascript
<p>I have a long string that a user entered. Using javascript I want to get the text of the first sentence IF it ends in a question mark. Is there a simple way I can do this? </p>

<p>For example:</p>

<pre><code>var myText1 = "What is your name? My name is Michelle."
</code></pre>

<p>I need to return:     "What is your name"</p>

<pre><code>var myText2 = "this is a test. this is a test."
</code></pre>

<p>I need to return:     "n/a"</p>
