﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2663	StringRegExpReplace backreference not working	BrewManNH	BrewManNH	"The only backreferences working in RegExp functions are \1\2\3... and $1$2$3..., the \g and \k backreferences mentioned in the help file don't work. If you use \g1 for example you'll get ""g1"" in the string instead of the backreferenced match.

This works:
{{{
Local $sOutput = StringRegExpReplace(""Slide1.jpg"", ""([a-zA-Z]+)(\d{1})(\..+)"", ""${1}0$2$3"") ;-- add a 0 before single digit
MsgBox(4096, ""Test"", $sOutput)
}}}
This does not:
{{{
Local $sOutput = StringRegExpReplace(""Slide1.jpg"", ""([a-zA-Z]+)(\d{1})(\..+)"", ""\g{1}0\g2\g3"") ;-- add a 0 before single digit
MsgBox(4096, ""Test"", $sOutput)
}}}
The first MsgBox gives you the output of ""Slide01.jpg"", the second message box gives you ""g{1}0g2g3"". 

If you tried using a named group using (?<one>) and back referenced it using \k<one> you'll get ""k<one>01.jpg""
{{{
Local $sOutput = StringRegExpReplace(""Slide1.jpg"", ""([a-zA-Z]+)(?<one>\d{1})(\..+)"", ""\k<one>0\2\3"") ;-- add a 0 before single digit
MsgBox(4096, ""Test"", $sOutput)
}}}

I tested this in 3.3.11.3, 3.3.10.2 and 3.3.8.1, doesn't work in any of them."	Feature Request	closed	3.3.11.4	AutoIt		None	Completed	RegExp backreference	
