﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1825	StringRegExpReplace - returns bad @extended value	Zedna		"In the helpfile at StringRegExpReplace is stated:
""Check @Extended for the number of replacements performed.""

But when I use backreference group of the same number more than once then it counts to @extended more times too.

See this small selfexplanatory commented example:

{{{
$input = 'column1,column2,column3,'

$output = StringRegExpReplace($input, '(\w{1,}),', '$1 = o2, ') ; $1 used 1x
If Not @error Then MsgBox(0,'OK extended: ' & @extended,$output) ; @extended = 3

$output = StringRegExpReplace($input, '(\w{1,}),', '$1 = o2\.$1, ') ; $1 used 2x
If Not @error Then MsgBox(0,'OK extended: ' & @extended,$output) ; @extended = 6 (should be 3)
}}}

So it's not corresponding to number of replacements, should be 3 in second example. 
I expect as number of replacements number of ""matches"" in this case which is always 3 in my examples.
In current implementation it corresponds to ""number of placements of all matching groups from replace parameter to reult string.""

Anyway if it's intended behaviour then documentation should be changed at least.

Tested on 3.2.12.1 and latest beta 3.3.5.6 with the same result."	Bug	closed		AutoIt	3.3.5.6	None	Works For Me		
