mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added note that in_context is slow
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1195 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -15,6 +15,9 @@ When the @replace@ is used many times with the same @match@ or @in_context@ valu
|
||||
> my_replace("input") # called many times
|
||||
This way the regular expression is compiled only once.
|
||||
|
||||
Note: Avoid using @in_context@, since it is quite slow.
|
||||
Consider using lookahead and lookbehind assertions first if possible.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:string]] String to replace in.
|
||||
|
||||
Reference in New Issue
Block a user