﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3922	"Problems with "".+"" and "".+?"" in regular expressions"	aacn	Jon	"My English is not good, please forgive me, I have to use google translate.

{{{
Local $sString = 'ABC'
For $i = 1 To 999999
	$sString &= 'xxxxxxxxxx'
Next
$sString &= 'xxxxxxxx'	;Here if you add 1 or more characters, the following expressions use .+? No match, but .+ can match
$sString &= 'DEF'

For $i = 1 To 999999
	$sString &= 'xxxxxxxxxx'
Next
$sString &= 'xxxx'	;Here if you add 1 or more characters, the following expressions use .+ No match, but .+? can match

;~ Local $aRegExp = StringRegExp($sString, 'ABC.+DEF', 1)
Local $aRegExp = StringRegExp($sString, 'ABC.+?DEF', 1)
If Not @error Then
	MsgBox(64, StringLen($aRegExp[0]), StringLen($sString) - StringLen($aRegExp[0]))
Else
	MsgBox(48, '', 'no match')
EndIf
}}}

It looks like this problem occurs when it is longer than about 10 megabytes."	Bug	assigned		AutoIt	3.3.14.5	None			
