Add RegEx substitution testcase and fix relevant docs
(cherry picked from commit a31bbb4bd920e28cbb2c737a785e91da5e7a599f)
This commit is contained in:
parent
06d28a7722
commit
42d6205e8c
2 changed files with 16 additions and 4 deletions
|
|
@ -123,7 +123,7 @@
|
|||
<argument index="4" name="end" type="int" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Searches the text for the compiled pattern and replaces it with the specified string. Escapes and backreferences such as [code]\1[/code] and [code]\g<name>[/code] expanded and resolved. By default only the first instance is replaced but it can be changed for all instances (global replacement). The region to search within can be specified without modifying where the start and end anchor would be.
|
||||
Searches the text for the compiled pattern and replaces it with the specified string. Escapes and backreferences such as [code]$1[/code] and [code]$name[/code] are expanded and resolved. By default only the first instance is replaced but it can be changed for all instances (global replacement). The region to search within can be specified without modifying where the start and end anchor would be.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue