Modify ↓
#2974 closed Bug (No Bug)
Named backreferences in replacement text (StringRegExpReplace)
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.12.0 | Severity: | None |
Keywords: | Cc: |
Description
The function StringRegExpReplace doesn't allow named backreferences in replacement text. The Syntax $+{groupName} should be allowed as in other programs using PCRE.
Test script:
ConsoleWrite(StringRegExpReplace("abc", "a(?<test>b)c, "A$+{test}C"))
Attachments (0)
Change History (1)
comment:1 Changed 10 years ago by BrewManNH
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
This isn't a bug, and it's documented in the help file that the only back references that are valid in StringRegExpReplace are "\" and "$".
See ticket #2663 for more information