Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.6.2
-
Fix Version/s: None
-
Component/s: regular expressions
-
Labels:None
-
Environment:windows xp sp3 x64
-
Number of attachments :
Description
//groovy version 1.6.2 //this script seems to go on an infinite loop in the last line def str = '''ID_843110_DATE 2008-08-26 02:53:25 ID_843110_SRC This is a test ID_843110_TRG Aceasta este o incercare ''' def id = 843110 def m = str =~ /(?s)^ID_($id)_DATE\n.*\nID_($id)_SRC\n(.*\n)+ID_($id)_TRG\n(.*\n)+/ m.each { println it } m = str =~ /(?s)^ID_($id)_DATE\n.*\nID_($id)_SRC\n(.*)+ID_($id)_TRG\n(.*\n)+/ m.each{ println it }