32 /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/it/you/see/
35 /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/and/foo
37 /(?>(\.\d\d[1-9]?))\d+/
43 /^((?>\w+)|(?>\s+))*$/
44 now is the time for all good men to come to the aid of the party
46 this is not a line with only words and spaces!
72 /((?>[^()]+)|\([^()]*\))+/
75 /\(((?>[^()]+)|\([^()]+\))+\)/
79 ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
95 /(a b(?x)c d (?-x)e f)/
133 /(?s-i:more.*than).*million/i
139 more \n than \n million
141 /(?:(?s-i)more.*than).*million/i
147 more \n than \n million
188 /^(?(?=abc)\w{3}:|\d\d)$/
195 /^(?(?!abc)\d\d|\w{3}:)$/
218 /( \( )? [^()]+ (?(1) \) |) /x
224 /( \( )? [^()]+ (?(1) \) ) /x
247 /((?i)blah)\s+(?i:\1)/
319 /(?(?=[^a-z]+[a-z]) \d{2}-[a-z]{3}-\d{2} | \d{2}-\d{2}-\d{2} ) /x
332 /(?i:saturday|sunday)/
352 /^([ab](?i)[cd]|[ef])/
363 /^(ab|a(?i)[b-c](?m-i)d|x(?i)y|z)/
380 /(?<=(?<!foo)bar)baz/
388 /The case of aaaaaa is missed out below because I think Perl 5.005_02 gets/
389 /it wrong; it sets $1 to aaa rather than aa. Compare the following test,/
390 /where it does set $1 to aa when matching aaaaaa./
409 /^(a\1?)(a\1?)(a\2?)(a\3?)$/
427 /The following tests are taken from the Perl 5.005 test suite; some of them/
428 /are compatible with 5.004, but I'd rather not have to sort them out./
770 /[a-zA-Z_][a-zA-Z0-9_]*/
776 /(bc+d$|ef*g.|h?i(j|k))/
784 /((((((((((a))))))))))/
787 /((((((((((a))))))))))\10/
790 /(((((((((a)))))))))/
793 /multiple words of text/
840 bbaababbabaaaaabbaaaabba
1107 /[a-zA-Z_][a-zA-Z0-9_]*/i
1110 /^a(bc+|b[eh])g|.h$/i
1113 /(bc+d$|ef*g.|h?i(j|k))/i
1122 /((((((((((a))))))))))/i
1125 /((((((((((a))))))))))\10/i
1128 /(((((((((a)))))))))/i
1131 /(?:(?:(?:(?:(?:(?:(?:(?:(?:(a))))))))))/i
1134 /(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))/i
1137 /multiple words of text/i
1143 MULTIPLE WORDS, YEAH
1193 /a(?:b|c|d){4,5}(.)/
1196 /a(?:b|c|d){4,5}?(.)/
1202 /a(?:b|c|d){6,7}(.)/
1205 /a(?:b|c|d){6,7}?(.)/
1208 /a(?:b|c|d){5,6}(.)/
1211 /a(?:b|c|d){5,6}?(.)/
1214 /a(?:b|c|d){5,7}(.)/
1217 /a(?:b|c|d){5,7}?(.)/
1220 /a(?:b|(c|e){1,2}?|d)+?(.)/
1245 /(?:(f)(o)(o)|(b)(a)(r))*/
1265 /^(?:b|a(?=(.)))*\1/
1396 /(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/
1399 /(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/
1400 caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
1415 /^a (?#xxx) (?#yyy) {3}c/x
1439 /((?s)^a(.))((?m)^b$)/
1496 /^(\()?blah(?(1)(\)))$/
1504 /^(\(+)?blah(?(1)(\)))$/
1583 /((?>[^()]+)|\([^()]*\))+/
1603 /^(?>(?(1)\.|())[^\W_](?>[a-z0-9-]*[^\W_])?)+$/
1623 the.quick.brown.fox-
1624 the.quick.brown.fox.
1625 the.quick.brown.fox_
1626 the.quick.brown.fox+
1628 /(?>.*)(?<=(abcd|wxyz))/
1632 a rather long string that doesn't end with one of them
1634 /word (?>(?:(?!otherword)[a-zA-Z0-9]+ ){0,30})otherword/
1635 word cat dog elephant mussel cow horse canary baboon snake shark otherword
1636 word cat dog elephant mussel cow horse canary baboon snake shark
1638 /word (?>[a-zA-Z0-9]+ ){0,30}otherword/
1639 word cat dog elephant mussel cow horse canary baboon snake shark the quick brown fox and the lazy dog and several other words getting close to thirty by now I hope
1641 /(?<=\d{3}(?!999))foo/
1647 /(?<=(?!...999)\d{3})foo/
1653 /(?<=\d{3}(?!999)...)foo/
1659 /(?<=\d{3}...)(?<!999)foo/
1665 /<a[\s]+href[\s]*=[\s]* # find <a href=
1666 ([\"\'])? # find single or double quote
1667 (?(1) (.*?)\1 | ([^\s]+)) # if quote found, match up to next matching
1668 # quote, otherwise match up to next space
1671 <a href=\"abcd xyz pqr\" cats
1672 <a href=\'abcd xyz pqr\' cats
1674 /<a\s+href\s*=\s* # find <a href=
1675 (["'])? # find single or double quote
1676 (?(1) (.*?)\1 | (\S+)) # if quote found, match up to next matching
1677 # quote, otherwise match up to next space
1680 <a href=\"abcd xyz pqr\" cats
1681 <a href = \'abcd xyz pqr\' cats
1683 /<a\s+href(?>\s*)=(?>\s*) # find <a href=
1684 (["'])? # find single or double quote
1685 (?(1) (.*?)\1 | (\S+)) # if quote found, match up to next matching
1686 # quote, otherwise match up to next space
1689 <a href=\"abcd xyz pqr\" cats
1690 <a href = \'abcd xyz pqr\' cats
1724 / End of testinput3 /