﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1464	StringRegExp, Single Char. Pattern with '*' Quantifier.	anonymous	Jon	"Well, It took we a wile to be sure.
But I think the following data shows that AutoIt is outputting a wrong(incomplete) RE-result.

Used string 'abbabb'
Used RegExp 'a?' or 'a*' (Problem seems limited to a single character capture pattern with a '*' or '?' quantifier)
Used Replace '*'

Compared against:
TRC=The Regex Coach.exe
RT=www.regextester.com
{{{
setting:	(Global)	Global On	Global On	Global Off	Global Off
source:		AutoIt		RT-Repl		TRC-Repl	RT-Repl		TRC-Repl
result:		**bbabb		**b*b**b*b*	**b*b**b*b*	*bbabb		*bbabb
'a??' or 'a*?'					
result:		***bbabb	***b*b***b*b*	*a*b*b*a*b*b*	*abbabb		*abbabb
}}}
The think the problem is shown in that:
1) AutoIt seems to be using globalReplace mode, indicated by the leading '*' replacements.
- They match up with the others when they are in GlobalReplace mode.
2) AutoIt is not showing the other '*' replacements that are present in the others.
Both StringRegExpReplace() and StringRegExp() are consistent and identical in there behavior.
In this case AutoIt seems to consistently stop when a failed matched is encountered. (so using 'b*' or '[^a]*' will fail at the start of the string)
{{{
ConsoleWrite('Out1 = ' & StringRegExpReplace('abbabb','a*','*') & @CRLF) ; fail. '**bbabb'
ConsoleWrite('Out2 = ' & StringRegExpReplace('abbabb','b*a','*') & @CRLF) ;; ok. '**bb'
ConsoleWrite('Out3 = ' & StringRegExpReplace('abbabb','b*','*') & @CRLF) ;; fail. '*abbabb'
ConsoleWrite('Out4 = ' & StringRegExpReplace('abbabb','b*b','*') & @CRLF) ;; ok. 'a*a*'
}}}
(3.3.4.0)&(3.3.5.3),Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86 OS:X86)"	Bug	closed	3.3.5.4	AutoIt	3.3.4.0	None	Fixed	StringRegExpReplace StringRegExp	
