Help required: regexp


I’m trying to use the regexp class described in the squirrel standard library documentation, under Chapter 6, The String Library:

Naively, I’m assuming that this is accessible as a global symbol, hence
local ex = regexp("[0-9]");

should compile and run. However, I get a runtime error:
ERROR: the index ‘regexp’ does not exist

I hope that I’m not just being dumb, but anyone have any advice?



Ah. We took out the Squirrel regexp class in order to save memory. (Because, like, who needs regexps on a microcontroller, right? Oh. Not right. OK.) However, we’ve recently made some quite drastic improvements in run-time memory usage, so in a future release the regexps will be coming back.