multiple matches in regex
<p>Hi I am trying to get the following javascript code to work. When I am typing a line containing all three names
fever, nightsweats and nocturia - I want an alert window to come on reminding me that those three in combination represent a dangerous sign. what am I doing wrong? thanks so much in advance!!!   </p>

<pre><code>&lt;html&gt;
&lt;script type="text/javascript"&gt;
function show_prompt() {
    var q = prompt("Please enter your name", "");

    var myRegExp1 = ^ ( ? = . * fever)( ? = . * night sweats)( ? = . * nocturia);
    var myRegExp2 = /fever,weight-loss,nocturia|weight-loss,fever,nocturia|nocturia,weight-loss,fever/
    var string1 = q;
    var string2 = q;
    var matchPos1 = string1.search(myRegExp1);
    var matchPos2 = string2.search(myRegExp2);
    if (matchPos1 != -1) {
        alert("bingo" + matchPos1);

    }
    if (matchPos2 != -1) {
        alert("symptoms" + matchPos2);
    }

}
&lt;/script&gt;
&lt;body&gt;

&lt;input type="button" onclick="show_prompt()" value="Show prompt box" /&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
