note
JavaFan
<blockquote><em>Cleary 'FFF' is part of string 'FFF NNN JKK III LLL QQQ' and should return a result >= 0 </em></blockquote>
Indeed, and it does. However, the negation of <c>result >= 0</c> is <em>not</em> <c>if($result <= 0)</c>, which is what you wrote in your program. There is a value (0) that's both <c>>= 0</c> and <c><= 0</c>.
<p>
Use <c>if ($result == -1)</c> in your program.
968251
968279