freebsd-dev/gnu/usr.bin/grep/tests/bre.tests
1999-11-22 09:32:57 +00:00

63 lines
1.1 KiB
Plaintext

0@a\(b\)c@abc
0@a(@a(
2@a\(@EPAREN
2@a\(b@EPAREN
0@a(b@a(b
0@a)@a)
2@a\)@EPAREN
2@\)@EPAREN
0@a\(\)b@ab
0@a^b@a^b@TO CORRECT
0@a$b@a$b
0@\($\)\(^\)@@
0@a*\(^b$\)c*@b
0@|@|
0@*@*
0@\(\)@abc
2@\(\{1\}a\)@BADRPT@TO CORRECT
0@^*@*
2@^\{1\}@BADRPT@TO CORRECT
2@\{@BADRPT
1@a\(b*\)c\1d@abbcbd
1@a\(b*\)c\1d@abbcbbbd
1@^\(.\)\1@abc
0@a\(\([bc]\)\2\)*d@abbccd
1@a\(\([bc]\)\2\)*d@abbcbd
0@a\(\(b\)*\2\)*d@abbbd
0@\(a\)\1bcd@aabcd
0@\(a\)\1bc*d@aabcd
0@\(a\)\1bc*d@aabd
0@\(a\)\1bc*d@aabcccd
0@\(a\)\1bc*[ce]d@aabcccd@TO CORRECT
0@^\(a\)\1b\(c\)*cd$@aabcccd
0@a\(*\)b@a*b
0@a\(**\)b@ab
2@a\(***\)b@BADRPT@TO CORRECT
0@*a@*a
0@**a@a
2@***a@BADRPT@TO CORRECT
0@a\{1\}b@ab
0@a\{1,\}b@ab
0@a\{1,2\}b@aab
2@a\{1@EBRACE
2@a\{1a@EBRACE
2@a\{1a\}@BADBR
2@a\{,2\}@BADBR
2@a\{,\}@BADBR
2@a\{1,x\}@BADBR
2@a\{1,x@EBRACE
2@a\{300\}@BADBR@TO CORRECT
2@a\{1,0\}@BADBR
0@ab\{0,0\}c@abcac
0@ab\{0,1\}c@abcac
0@ab\{0,3\}c@abbcac
0@ab\{1,1\}c@acabc
0@ab\{1,3\}c@acabc
0@ab\{2,2\}c@abcabbc
0@ab\{2,4\}c@abcabbc
2@a\{1\}\{1\}@BADRPT@TO CORRECT
2@a*\{1\}@BADRPT@TO CORRECT
2@a\{1\}*@BADRPT@TO CORRECT
1@a\(b\)?c\1d@acd
0@-\{0,1\}[0-9]*$@-5