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)
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