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
This commit is contained in:
twanvl
2007-08-24 20:46:56 +00:00
parent 61136d79a8
commit ca55a4d5da
+14
View File
@@ -0,0 +1,14 @@
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\\)"