PCRE2 version 10.42 2022-12-11 # This set of tests is for features that are compatible with all versions of # Perl >= 5.10, in non-UTF mode. It should run clean for the 8-bit, 16-bit, and # 32-bit PCRE libraries, and also using the perltest.sh script. # WARNING: Use only / as the pattern delimiter. Although pcre2test supports # a number of delimiters, all those other than / give problems with the # perltest.sh script. #forbid_utf #newline_default lf #perltest /¬1234(?# test newlines inside)/ ------------------------------------------------------------------ 0 12 Bra 3 ¬ 4 1234 12 12 Ket 15 End ------------------------------------------------------------------ Capture group count = 0 Compile options: Overall options: anchored First code unit = '1' Subject length lower bound = 4 1234 0: 1234 /¬1234(?# test newlines inside)/ ------------------------------------------------------------------ 0 12 Bra 3 ¬ 4 1234 12 12 Ket 15 End ------------------------------------------------------------------ Capture group count = 0 Compile options: Overall options: anchored First code unit = '1' Subject length lower bound = 4 1234 0: 1234 /(.*)$/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 $ 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines 0: test newlines 1: test newlines inside 0: inside 1: inside /(.*)\z/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any*+ 10 7 Ket 13 \z 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines 0: test newlines 1: test newlines inside 0: inside 1: inside /(.*)\Z/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \Z 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines 0: test newlines 1: test newlines inside 0: inside 1: inside /(.*)\R/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any*+ 10 7 Ket 13 \R 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Subject length lower bound = 1 test newlines No match inside No match /(.*)\n/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x15 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 Contains explicit CR or LF match First code unit at start or follows newline Last code unit = \x15 Subject length lower bound = 1 test newlines No match inside No match /(.*)\r/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x0d 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 Contains explicit CR or LF match First code unit at start or follows newline Last code unit = \x0d Subject length lower bound = 1 test newlines No match inside No match /(.*)\f/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x0c 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Last code unit = \x0c Subject length lower bound = 1 test newlines No match inside No match /(\N*)\f/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x0c 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Last code unit = \x0c Subject length lower bound = 1 test newlines No match inside No match /(\N*)$/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 $ 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines 0: test newlines 1: test newlines inside 0: inside 1: inside /(.*)\s/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \s 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Subject length lower bound = 1 test newlines 0: test 1: test inside No match /(\N*)\s/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \s 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Subject length lower bound = 1 test newlines 0: test 1: test inside No match /(\S*)\s/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 \S*+ 10 7 Ket 13 \s 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 Starting code units: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19 \x1a \x1b \x1c \x1d \x1e \x1f \x20 \x21 \x22 \x23 \x24 \x25 \x26 \x27 \x28 \x29 \x2a \x2b \x2c \x2d \x2e \x2f \x30 \x31 \x32 \x33 \x34 \x35 \x36 \x37 \x38 \x39 \x3a \x3b \x3c \x3d \x3e \x3f \x40   â ä à á ã å ç ñ ¢ . < ( + | & é ê ë è í î ï ì ß ! $ * ) ; ¬ - / Â Ä À Á Ã Å Ç Ñ ¦ , % _ > ? ø É Ê Ë È Í Î Ï Ì ` : # @ ' = " Ø a b c d e f g h i « » ð ý þ ± ° j k l m n o p q r ª º æ ¸ Æ ¤ µ ~ s t u v w x y z ¡ ¿ Ð [ Þ ® ^ £ ¥ · © § ¶ ¼ ½ ¾ Ý ¨ ¯ ] ´ × { A B C D E F G H I ­ ô ö ò ó õ } J K L M N O P Q R ¹ û ü ù ú ÿ \ ÷ S T U V W X Y Z ² Ô Ö Ò Ó Õ 0 1 2 3 4 5 6 7 8 9 ³ Û Ü Ù Ú \xff Subject length lower bound = 1 test newlines 0: test 1: test inside No match /(\N*)/ ------------------------------------------------------------------ 0 13 Bra 3 7 CBra 1 8 Any*+ 10 7 Ket 13 13 Ket 16 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines 0: test newlines 1: test newlines inside 0: inside 1: inside /(.*)/s ------------------------------------------------------------------ 0 13 Bra 3 7 CBra 1 8 AllAny*+ 10 7 Ket 13 13 Ket 16 End ------------------------------------------------------------------ Capture group count = 1 May match empty string Compile options: dotall Overall options: anchored dotall Subject length lower bound = 0 test newlines 0: test newlines 1: test newlines inside 0: inside 1: inside /(.*)$/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 $ 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines\ninside 0: inside 1: inside /(.*)\z/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any*+ 10 7 Ket 13 \z 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines\ninside 0: inside 1: inside /(.*)\Z/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \Z 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines\ninside 0: inside 1: inside /(.*)\R/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any*+ 10 7 Ket 13 \R 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Subject length lower bound = 1 test newlines\ninside 0: test newlines\x15 1: test newlines /(.*)\n/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x15 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 Contains explicit CR or LF match First code unit at start or follows newline Last code unit = \x15 Subject length lower bound = 1 test newlines\ninside 0: test newlines\x15 1: test newlines /(.*)\r/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x0d 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 Contains explicit CR or LF match First code unit at start or follows newline Last code unit = \x0d Subject length lower bound = 1 test newlines\ninside No match /(.*)\f/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x0c 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Last code unit = \x0c Subject length lower bound = 1 test newlines\ninside No match /(\N*)\f/ ------------------------------------------------------------------ 0 15 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \x0c 15 15 Ket 18 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Last code unit = \x0c Subject length lower bound = 1 test newlines\ninside No match /(\N*)$/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 $ 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines\ninside 0: inside 1: inside /(.*)\s/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \s 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Subject length lower bound = 1 test newlines\ninside 0: test newlines\x15 1: test newlines /(\N*)\s/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 Any* 10 7 Ket 13 \s 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 First code unit at start or follows newline Subject length lower bound = 1 test newlines\ninside 0: test newlines\x15 1: test newlines /(\S*)\s/ ------------------------------------------------------------------ 0 14 Bra 3 7 CBra 1 8 \S*+ 10 7 Ket 13 \s 14 14 Ket 17 End ------------------------------------------------------------------ Capture group count = 1 Starting code units: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19 \x1a \x1b \x1c \x1d \x1e \x1f \x20 \x21 \x22 \x23 \x24 \x25 \x26 \x27 \x28 \x29 \x2a \x2b \x2c \x2d \x2e \x2f \x30 \x31 \x32 \x33 \x34 \x35 \x36 \x37 \x38 \x39 \x3a \x3b \x3c \x3d \x3e \x3f \x40   â ä à á ã å ç ñ ¢ . < ( + | & é ê ë è í î ï ì ß ! $ * ) ; ¬ - / Â Ä À Á Ã Å Ç Ñ ¦ , % _ > ? ø É Ê Ë È Í Î Ï Ì ` : # @ ' = " Ø a b c d e f g h i « » ð ý þ ± ° j k l m n o p q r ª º æ ¸ Æ ¤ µ ~ s t u v w x y z ¡ ¿ Ð [ Þ ® ^ £ ¥ · © § ¶ ¼ ½ ¾ Ý ¨ ¯ ] ´ × { A B C D E F G H I ­ ô ö ò ó õ } J K L M N O P Q R ¹ û ü ù ú ÿ \ ÷ S T U V W X Y Z ² Ô Ö Ò Ó Õ 0 1 2 3 4 5 6 7 8 9 ³ Û Ü Ù Ú \xff Subject length lower bound = 1 test newlines\ninside 0: test 1: test /(\N*)/ ------------------------------------------------------------------ 0 13 Bra 3 7 CBra 1 8 Any*+ 10 7 Ket 13 13 Ket 16 End ------------------------------------------------------------------ Capture group count = 1 May match empty string First code unit at start or follows newline Subject length lower bound = 0 test newlines\ninside 0: test newlines 1: test newlines /(.*)/s ------------------------------------------------------------------ 0 13 Bra 3 7 CBra 1 8 AllAny*+ 10 7 Ket 13 13 Ket 16 End ------------------------------------------------------------------ Capture group count = 1 May match empty string Compile options: dotall Overall options: anchored dotall Subject length lower bound = 0 test newlines\ninside 0: test newlines\x15inside 1: test newlines\x15inside