Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2974 closed Bug (No Bug)

Named backreferences in replacement text (StringRegExpReplace)

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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 9 years ago by BrewManNH

  • Resolution set to No Bug
  • Status changed from new to closed

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 9 years ago by BrewManNH (previous) (diff)

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.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.