Files
codeql/python/ql/test/library-tests/regex/FirstLast.expected
2025-09-19 15:39:12 +00:00

136 lines
4.6 KiB
Plaintext

| 012345678 | first | 0 | 9 |
| 012345678 | last | 0 | 9 |
| (?!not-this)^[A-Z_]+$ | first | 3 | 11 |
| (?!not-this)^[A-Z_]+$ | first | 12 | 13 |
| (?!not-this)^[A-Z_]+$ | first | 13 | 19 |
| (?!not-this)^[A-Z_]+$ | first | 13 | 20 |
| (?!not-this)^[A-Z_]+$ | last | 3 | 11 |
| (?!not-this)^[A-Z_]+$ | last | 13 | 19 |
| (?!not-this)^[A-Z_]+$ | last | 13 | 20 |
| (?!not-this)^[A-Z_]+$ | last | 20 | 21 |
| (?:(?:\n\r?)\|^)( *)\\S | first | 6 | 7 |
| (?:(?:\n\r?)\|^)( *)\\S | first | 11 | 12 |
| (?:(?:\n\r?)\|^)( *)\\S | last | 17 | 19 |
| (?:(?P<n1>^(?:\|x))) | first | 10 | 11 |
| (?:(?P<n1>^(?:\|x))) | first | 15 | 16 |
| (?:(?P<n1>^(?:\|x))) | last | 15 | 16 |
| (?:[^%]\|^)?%\\((\\w*)\\)[a-z] | first | 0 | 11 |
| (?:[^%]\|^)?%\\((\\w*)\\)[a-z] | first | 3 | 7 |
| (?:[^%]\|^)?%\\((\\w*)\\)[a-z] | first | 8 | 9 |
| (?:[^%]\|^)?%\\((\\w*)\\)[a-z] | first | 11 | 12 |
| (?:[^%]\|^)?%\\((\\w*)\\)[a-z] | last | 21 | 26 |
| (?Li)a+ | first | 5 | 6 |
| (?Li)a+ | first | 5 | 7 |
| (?Li)a+ | last | 5 | 6 |
| (?Li)a+ | last | 5 | 7 |
| (?P<name>[\\w]+)\| | first | 9 | 13 |
| (?P<name>[\\w]+)\| | first | 9 | 14 |
| (?P<name>[\\w]+)\| | last | 9 | 13 |
| (?P<name>[\\w]+)\| | last | 9 | 14 |
| (?a-imsx:a+) | first | 3 | 9 |
| (?a-imsx:a+) | last | 9 | 10 |
| (?a-imsx:a+) | last | 9 | 11 |
| (?aimsx)a+ | first | 8 | 9 |
| (?aimsx)a+ | first | 8 | 10 |
| (?aimsx)a+ | last | 8 | 9 |
| (?aimsx)a+ | last | 8 | 10 |
| (?aimsx:a+) | first | 7 | 8 |
| (?aimsx:a+) | last | 8 | 9 |
| (?aimsx:a+) | last | 8 | 10 |
| (?m)^(?!$) | first | 4 | 5 |
| (?m)^(?!$) | first | 8 | 9 |
| (?m)^(?!$) | last | 4 | 5 |
| (?m)^(?!$) | last | 8 | 9 |
| (?ui)a+ | first | 5 | 6 |
| (?ui)a+ | first | 5 | 7 |
| (?ui)a+ | last | 5 | 6 |
| (?ui)a+ | last | 5 | 7 |
| (\\033\|~{) | first | 1 | 5 |
| (\\033\|~{) | first | 6 | 8 |
| (\\033\|~{) | last | 1 | 5 |
| (\\033\|~{) | last | 6 | 8 |
| [\ufffd-\ufffd] | first | 0 | 5 |
| [\ufffd-\ufffd] | last | 0 | 5 |
| [\ufffd-\ufffd][\ufffd-\ufffd] | first | 0 | 5 |
| [\ufffd-\ufffd][\ufffd-\ufffd] | last | 5 | 10 |
| []] | first | 0 | 3 |
| []] | last | 0 | 3 |
| [^-] | first | 0 | 4 |
| [^-] | last | 0 | 4 |
| [^A-Z] | first | 0 | 6 |
| [^A-Z] | last | 0 | 6 |
| [^]] | first | 0 | 4 |
| [^]] | last | 0 | 4 |
| \\+0 | first | 0 | 2 |
| \\+0 | last | 2 | 3 |
| \\A[+-]?\\d+ | first | 0 | 2 |
| \\A[+-]?\\d+ | first | 2 | 6 |
| \\A[+-]?\\d+ | first | 2 | 7 |
| \\A[+-]?\\d+ | first | 7 | 9 |
| \\A[+-]?\\d+ | first | 7 | 10 |
| \\A[+-]?\\d+ | last | 7 | 9 |
| \\A[+-]?\\d+ | last | 7 | 10 |
| \\Afoo\\Z | first | 0 | 2 |
| \\Afoo\\Z | first | 2 | 5 |
| \\Afoo\\Z | last | 2 | 5 |
| \\Afoo\\Z | last | 5 | 7 |
| \\[(?P<txt>[^[]*)\\]\\((?P<uri>[^)]*) | first | 0 | 2 |
| \\[(?P<txt>[^[]*)\\]\\((?P<uri>[^)]*) | last | 28 | 32 |
| \\[(?P<txt>[^[]*)\\]\\((?P<uri>[^)]*) | last | 28 | 33 |
| \\\|\\[\\][123]\|\\{\\} | first | 0 | 2 |
| \\\|\\[\\][123]\|\\{\\} | first | 12 | 14 |
| \\\|\\[\\][123]\|\\{\\} | last | 6 | 11 |
| \\\|\\[\\][123]\|\\{\\} | last | 14 | 16 |
| \\bfoo\\B | first | 0 | 2 |
| \\bfoo\\B | last | 5 | 7 |
| \|x | first | 1 | 2 |
| \|x | last | 1 | 2 |
| ^(^y\|^z)(u$\|v$)$ | first | 0 | 1 |
| ^(^y\|^z)(u$\|v$)$ | first | 2 | 3 |
| ^(^y\|^z)(u$\|v$)$ | first | 3 | 4 |
| ^(^y\|^z)(u$\|v$)$ | first | 5 | 6 |
| ^(^y\|^z)(u$\|v$)$ | first | 6 | 7 |
| ^(^y\|^z)(u$\|v$)$ | last | 9 | 10 |
| ^(^y\|^z)(u$\|v$)$ | last | 10 | 11 |
| ^(^y\|^z)(u$\|v$)$ | last | 12 | 13 |
| ^(^y\|^z)(u$\|v$)$ | last | 13 | 14 |
| ^(^y\|^z)(u$\|v$)$ | last | 15 | 16 |
| ^.$ | first | 0 | 1 |
| ^.$ | first | 1 | 2 |
| ^.$ | last | 1 | 2 |
| ^.$ | last | 2 | 3 |
| ^[A-Z_]+$(?<!not-this) | first | 0 | 1 |
| ^[A-Z_]+$(?<!not-this) | first | 1 | 7 |
| ^[A-Z_]+$(?<!not-this) | first | 1 | 8 |
| ^[A-Z_]+$(?<!not-this) | first | 13 | 21 |
| ^[A-Z_]+$(?<!not-this) | last | 1 | 7 |
| ^[A-Z_]+$(?<!not-this) | last | 1 | 8 |
| ^[A-Z_]+$(?<!not-this) | last | 8 | 9 |
| ^[A-Z_]+$(?<!not-this) | last | 13 | 21 |
| ax{01,3} | first | 0 | 1 |
| ax{01,3} | last | 1 | 2 |
| ax{01,3} | last | 1 | 8 |
| ax{01,3} | last | 3 | 8 |
| ax{3,} | first | 0 | 1 |
| ax{3,} | last | 1 | 2 |
| ax{3,} | last | 1 | 6 |
| ax{3,} | last | 3 | 6 |
| ax{3} | first | 0 | 1 |
| ax{3} | last | 1 | 2 |
| ax{3} | last | 1 | 5 |
| ax{3} | last | 3 | 5 |
| ax{,3} | first | 0 | 1 |
| ax{,3} | last | 0 | 1 |
| ax{,3} | last | 1 | 2 |
| ax{,3} | last | 1 | 6 |
| ax{,3} | last | 3 | 6 |
| x\| | first | 0 | 1 |
| x\| | last | 0 | 1 |
| x\|(?<!\\w)l | first | 0 | 1 |
| x\|(?<!\\w)l | first | 6 | 8 |
| x\|(?<!\\w)l | first | 9 | 10 |
| x\|(?<!\\w)l | last | 0 | 1 |
| x\|(?<!\\w)l | last | 9 | 10 |
| x{Not qual} | first | 0 | 11 |
| x{Not qual} | last | 0 | 11 |