Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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 by BrewManNH, 11 years ago

Resolution: No Bug
Status: newclosed

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

Last edited 11 years ago by BrewManNH (previous) (diff)

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.