Files
MagicSetEditor2/doc/function/regex_escape.txt
twanvl ca55a4d5da Added regex_escape script function (was already used by keyword code);
Added icons for 'sort special rarity' choice.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@626 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-24 20:46:56 +00:00

15 lines
387 B
Plaintext

Function: regex_escape
--Usage--
> regex_escape(some_string)
Escape a string so it can safely be used in a [[type:regex|regular expression]].
The regular expression will match the literal string, and nothing else.
--Parameters--
! Parameter Type Description
| @input@ [[type:string]] String to escape.
--Examples--
> regex_escape("some(thing)") == "some\\(thing\\)"