| 1 | # negation of attribute matcher |
| 2 | |
| 3 | # "!$u" matches a single character that is not a letter |
| 4 | table: | |
| 5 | include tables/latinLetterDef6Dots.uti |
| 6 | sign ; 46 |
| 7 | noback context !$u @46* |
| 8 | tests: |
| 9 | - - Foo |
| 10 | - ;foo |
| 11 | |
| 12 | # "!$u2" matches exactly two characters that are not letters |
| 13 | table: | |
| 14 | include tables/latinLetterDef6Dots.uti |
| 15 | sign ; 46 |
| 16 | noback context !$u2 @46* |
| 17 | tests: |
| 18 | - - Foo |
| 19 | - foo |
| 20 | - - fO |
| 21 | - fo |
| 22 | - - fOo |
| 23 | - foo |
| 24 | - - fOO |
| 25 | - f;oo |
| 26 | |
| 27 | # "!$u" never matches the empty string |
| 28 | table: | |
| 29 | include tables/latinLetterDef6Dots.uti |
| 30 | sign ; 46 |
| 31 | noback context $u[]!$u @46 |
| 32 | tests: |
| 33 | - - foo |
| 34 | - foo |
| 35 | - - foO |
| 36 | - fo;o |