Advanced string comparison?

BlitzMax Forums/BlitzMax Programming/Advanced string comparison?

Anyone have a lib for advanced string comparisons with wildcards, i.e. "Blit*asic=Blitz Basic" would return True?

Axe.LUA

Lua is extremely powerfull on string comparision.

This is a good use case for regular expressions.

using a pattern like "Blit.+Basic" would feks match "BlitzBasic" "Blitz Basic"

I ported (if you can even call it that) the TRE regexp library a while back. So you could try it out, and see if its what you need.

TRE: http://laurikari.net/tre/
LIB: http://grable0.googlepages.com/tre_regex.rar

i didnt bother making it a module btw.

I also made a module out of the Tiny regular expresssion parser - with a very simple interface. However, the t-rex code does seem to have a couple of issues (bugs).. it's nothing that can't be worked around by altering the expression however. I'll document and release it within the next couple of days if anyone is interested.