Commit 43ced447 authored by twanvl's avatar twanvl

Added note that in_context is slow

parent b170443d
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment