note
BrowserUk
<p>Unfortunately, the benchmark doesn't tell the whole story. Many of the regex-based solutions fail on unescaped regex characters.
<p>All of the faster ones fail to correctly find the longest string when fed either of:
<code>
1111111121111111111112111111111111111111111112111111111111211111
ababacababacadacababacadaeadacabaz
</code>
<p>(Including mine, which is sad, as the first one is my publish test string:()
<div class="pmsig"><div class="pmsig-171588">
<hr />
<font size=1 >
<div>Examine what is said, not who speaks.</div>
"Efficiency is intelligent laziness." -David Dunham<br />
"Think for yourself!" - [Abigail-II|Abigail] <br />
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - [tachyon]<br />
</font>
</div></div>
382567
382817