I fixed it now so that the '#' link works. It's a bit of a bodge. I'd really like to use MySQL's 'RLIKE' operator, which does regular expression matches, but it's very slow. So I'm using 10 separate 'LIKE' operators instead, which is actually about 5 times faster...(posted 9126 days ago)Chris.