Stormfront Regular Expressions on 04/09/2016 06:32 PM CDT
Links-arrows 1
Reply Reply
So I'm familiar with the idea of regular expressions, but the link that is supposed to provide details from the "Scripting Help" page goes to a page which is not helpful. I'm using Stormfront, and I'm looking for documentation on the regular expression capabilities.

For example, what escape characters are available? Is there an ability to capture some text to a variable? What wildcard characters are available? Etc.
Reply Reply
Re: Stormfront Regular Expressions on 04/09/2016 07:17 PM CDT
Links-arrows 2
Reply Reply
Stormfront has very basic regex capability if I recall. Regex are held between / / markers and if you want to match case exactly (or don't want to -- I forget which one tbh) close it with /i instead of just the /. Groups are allowed, but variables are not populated by any groups in parenthesis so there's no way to easily save variables from a match. See the first example below for a round about way to do this, however. I'm pretty sure it will accept basic regex codes like .* \. [0-9] or [a-z]. I'm not sure if it will accept stuff like \w \d \s etc. however.

Here's a few working examples:
https://elanthipedia.play.net/mediawiki/index.php/Cast_Facing_(script)
https://elanthipedia.play.net/mediawiki/index.php/Progressive_Stealing_(script) (Direct link: http://pastebin.com/Ndhp8DyR)
Reply Reply
Re: Stormfront Regular Expressions on 04/13/2016 12:00 PM CDT
Links-arrows 3
Reply Reply
Thanks. The examples were helpful.

I still wish there was some decent documentation on it, somewhere, so that I don't have to experiment as much.
Reply Reply