mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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\\)"
|
||||
Reference in New Issue
Block a user