why does string.search fail in this instance?
<p>I'm pasting the exact strings that javascript prints: </p>

<pre><code>string: "testare atasament fisier,tip nota - reamintire (1),Diverse,Telefon,Fisier,tip nota Azom" without the ""

substring: "tip nota - reamintire (1)" again without the ""
</code></pre>

<p>just writing those "" to show that there are no empty spaces anywhere funny (also checked in the code)</p>

<p>The result of </p>

<pre><code>string.search(substring);
</code></pre>

<p>is always -1, how come? which character is messing up the search?</p>

<p>note that i don't use the names string and substring for the variables in my actual code</p>
