-# Copyright (c) 2001-2012 International Business Machines
+# Copyright (c) 2001-2013 International Business Machines
# Corporation and others. All Rights Reserved.
#
# file:
"(ab)?(?<=ab)cd|ef" i "<0><1>ab</1>cd</0>"
+# Bug 9719 Loop breaking on (zero length match){3,} (unlimited upper bound).
+#
+
+"(?:abc){1,}abc" "<0>abcabcabcabcabc</0>"
+"(?:2*){2,}?a2\z" "<0>2a2</0>"
+"(?:2*){2,}?a2\z" "2a3"
+"(?:x?+){3,}+yz" "w<0>yz</0>"
+"(2*){2,}?a2\\z" "2a3"
+"(2*){2,}?a2\\z" "<0>2<1></1>a2\\z</0>"
+"(2*){2,}?a2\z" "<0>2<1></1>a2</0>"
+
+
+# Bug 10024
+# Incorrect (unbounded) longest match length with {1, 20} style quantifiers.
+# Unbounded match is disallowed in look-behind expressions.
+# Max match length is used to limit where to check for look-behind matches.
+
+"(?<=a{1,5})bc" "aaaa<0>bc</0>def"
+"(?<=(?:aa){3,20})bc" "aaaaaa<0>bc</0>def"
+"(?<!abc {1,100}|def {1,100}|ghi {1,100})jkl" "def jkl"
+"(?<!abc {1,100}|def {1,100}|ghi {1,100})jkl" "rst <0>jkl</0>"
+"(?<=a{11})bc" "aaaaaaaaaaa<0>bc</0>"
+"(?<=a{11})bc" "aaaaaaaaaabc"
+"(?<=a{1,})bc" E "aaaa<0>bc</0>def" # U_REGEX_LOOK_BEHIND_LIMIT error.
+"(?<=(?:){11})bc" "<0>bc</0>" # Empty (?:) expression.
+
+
# Random debugging, Temporary
#
#"^(?:a?b?)*$" "a--"