Yet more PHPosxom hacking going on today; this time I'm having a go at implementing searching.
Feel free to try out <a href="http://www.scotlandsoftware.com/blog/?post=/meta/search.html">the new search form</a>.
<strong>Update:</strong> It's getting better!
<a href="http://nslog.com/">Erik</a> and I spent quite a while on iChat discussing the regular expressions needed to do
the search-results query highlighting, and I think we've finally cracked it. Give it a shot, and
please report any anomalous behaviour. (If you're interested in the algorithm/patterns we came up with, you can
<a href="http://www.scotlandsoftware.com/blog/meta/replace_visible_text.txt">get them here</a> - be sure to view them
in a text editor instead of your web browser.)
Oh, and we no longer return the search form's post itself as a match. ;)