[sword-devel] Comming soon: new improved sword searching

Leon Brooks sword-devel@crosswire.org
Mon, 9 Sep 2002 00:48:43 +0800

On Sun, 8 Sep 2002 13:42, Joel Mawhorter wrote:
> If any of you can think of an example of something that you do
> with the current regular expression searching that won't be possible with
> what I described above, please let me know.

All verses containing two or more of God, Good or Greed: (g[ore]*d){2,}

It's true that most people can't be bothered learning regex, but I think 
losing it would be a Bad Idea. If you're after speed improvements, do a 
plaintext/indexed search up to the first special character before handing 
over to regex proper. Be aware that regex libraries are sufficient efficient 
these days that you might not see any improvement, depending on how much 
indexing you get to use (by way of reducing the search space) on the way in.

Cheers; Leon