Edit code example in CompiledRegex

Signed-off-by: jorgectf <jorgectf@protonmail.com>
This commit is contained in:
jorgectf
2021-04-29 11:10:03 +02:00
parent 21e01b809f
commit 213d011a8c

View File

@@ -52,12 +52,13 @@ private module Re {
*
* ```py
* pattern = re.compile(input)
* input.match(s)
* pattern.match(s)
* ```
*
* `patternCall` refers to `re.compile(input)`,
* `regexNode` refers to `input` and
* `this` will refer to `input.match(s)`
* This class will identify that `re.compile` compiles `input` and afterwards
* executes `re`'s `match`. As a result, `this` will refer to `pattern.match(s)`
* and `this.getRegexNode()` will return the node for `input` (`re.compile`'s first argument)
*
*
* See `RegexExecutionMethods`
*