|
Added
Link Here
|
| 1 |
############################################################################### |
| 2 |
# Copyright (c) 2000, 2005 IBM Corporation and others. |
| 3 |
# All rights reserved. This program and the accompanying materials |
| 4 |
# are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
# which accompanies this distribution, and is available at |
| 6 |
# http://www.eclipse.org/legal/epl-v10.html |
| 7 |
# |
| 8 |
# Contributors: |
| 9 |
# IBM Corporation - initial API and implementation |
| 10 |
############################################################################### |
| 11 |
|
| 12 |
## Content Assist for regular expressions ## |
| 13 |
## Copied from org.eclipse.ui.texteditor.RegExMessages.properties. |
| 14 |
## Needed by org.eclipse.mylar.internal.team.ui.preferences.workaround.RegExMessages. |
| 15 |
## TODO Ask platform guys to open this API |
| 16 |
# use \\\u0075 for a backslash-u |
| 17 |
displayString_bs_bs= \\\\ - Backslash |
| 18 |
additionalInfo_bs_bs= Backslash |
| 19 |
displayString_bs_0= \\0nnn - Octal character code |
| 20 |
additionalInfo_bs_0= Octal character code\n\nExamples:\n\\011 (tabulator)\n\\0112 (character J) |
| 21 |
displayString_bs_x= \\xhh - Hex character code |
| 22 |
additionalInfo_bs_x= Hexadecimal character code\n\nExamples:\n\\x09 (tabulator)\n\\x4A or \\x4a (character J) |
| 23 |
displayString_bs_u= \\\u0075hhhh - Hex code for Unicode character |
| 24 |
additionalInfo_bs_u= Hexadecimal code for Unicode character\n\nExamples:\n\\\u0075004A (character J)\n\\\u007503B2 (lowercase Greek letter beta: \u03B2) |
| 25 |
displayString_bs_t= \\t - Tab |
| 26 |
additionalInfo_bs_t= Tabulator (\\x09, decimal: 9) |
| 27 |
displayString_bs_n= \\n - Newline |
| 28 |
additionalInfo_bs_n= Newline (\\x0A, decimal: 10) |
| 29 |
displayString_bs_r= \\r - CR |
| 30 |
additionalInfo_bs_r= Carriage Return (\\x0D, decimal: 13) |
| 31 |
displayString_bs_f= \\f - FF |
| 32 |
additionalInfo_bs_f= Form Feed (\\x0C, decimal: 12) |
| 33 |
displayString_bs_a= \\a - Beep |
| 34 |
additionalInfo_bs_a= Beep, Bell, Alert (\\x07, decimal: 7) |
| 35 |
displayString_bs_e= \\e - Esc |
| 36 |
additionalInfo_bs_e= Escape (\\x1B, decimal: 27) |
| 37 |
displayString_bs_c= \\c - Control character |
| 38 |
additionalInfo_bs_c= Control character\n\nExample:\n\\cC (Ctrl+C) |
| 39 |
|
| 40 |
displayString_dot= . - Any character |
| 41 |
additionalInfo_dot= The dot matches any character except line terminators.\n\n\ |
| 42 |
To make the dot match line terminators as well, \n\ |
| 43 |
start the expression with the embedded flag expression \n\ |
| 44 |
"(?s)" (without quotes). |
| 45 |
displayString_bs_d= \\d - A digit |
| 46 |
additionalInfo_bs_d= A digit: [0-9] |
| 47 |
displayString_bs_D= \\D - Not a digit |
| 48 |
additionalInfo_bs_D= Not a digit: [^0-9] |
| 49 |
displayString_bs_s= \\s - A whitespace |
| 50 |
additionalInfo_bs_s= A whitespace: [ \\t\\n\\x0B\\f\\r] |
| 51 |
displayString_bs_S= \\S - Not a whitespace |
| 52 |
additionalInfo_bs_S= Not a whitespace: [^\\s] |
| 53 |
displayString_bs_w= \\w - An alphanumeric (word character) |
| 54 |
additionalInfo_bs_w= An alphanumeric (a word character): [a-zA-Z_0-9] |
| 55 |
displayString_bs_W= \\W - Not an alphanumeric |
| 56 |
additionalInfo_bs_W= Not an alphanumeric (not a word character): [^\\w] |
| 57 |
|
| 58 |
displayString_start= ^ - Line start |
| 59 |
additionalInfo_start= Line start (positional match)\n\nExample:\n\ |
| 60 |
The expression "^Eclipse" matches the term "Eclipse"\n\ |
| 61 |
only on the second line of text\n\ |
| 62 |
"The Eclipse Project\n\ |
| 63 |
Eclipse Platform". |
| 64 |
displayString_end= $ - Line end |
| 65 |
additionalInfo_end= Line end (positional match)\n\nExample:\n\ |
| 66 |
The expression "Eclipse$" matches the term "Eclipse"\n\ |
| 67 |
only on the second line of text\n\ |
| 68 |
"- Install the Eclipse Platform\n\ |
| 69 |
- Run Eclipse". |
| 70 |
displayString_bs_b= \\b- Word beginning or end |
| 71 |
additionalInfo_bs_b= Word beginning or end (positional match)\n\nExample:\n\ |
| 72 |
The expression "s\\b" matches only the last "s" of "glasses" in text\n\ |
| 73 |
"I lost my glasses." |
| 74 |
displayString_bs_B= \\B - Not a word beginning or end |
| 75 |
additionalInfo_bs_B= Not a word beginning or end (positional match)\n\nExample:\n\ |
| 76 |
The expression "\\BS" matches only "S" of "printString" in text\n\ |
| 77 |
"void print(String printString)". |
| 78 |
displayString_bs_A= \\A - Start of input |
| 79 |
additionalInfo_bs_A= Start of input (positional match)\n\nExample:\n\ |
| 80 |
The expression "\\ABC" matches only "BC" of "BCD" in text\n\ |
| 81 |
"BCD ABC\n\ |
| 82 |
BCDEF". |
| 83 |
displayString_bs_G= \\G - Previous match's end |
| 84 |
additionalInfo_bs_G= Previous match's end (positional match)\n\nExample:\n\ |
| 85 |
The expression "\\Ga" matches the first and then the second "a" in text\n\ |
| 86 |
"aardvark" (when starting from the beginning). |
| 87 |
displayString_bs_Z= \\Z - End of input, does not consider last line terminator |
| 88 |
additionalInfo_bs_Z= End of input, does not consider last line terminator (positional match)\n\n\ |
| 89 |
The expression matches at the end of the file, except for when the\n\ |
| 90 |
file ends in a line terminator, in which case it matches before that\n\ |
| 91 |
line terminator.\n\nExample:\n\ |
| 92 |
The expression "ing\\Z" matches "ing" in text\n\ |
| 93 |
"testing", as well as in text\n\ |
| 94 |
"testing\n\ |
| 95 |
", but doesn't match in text\n\ |
| 96 |
"testing\n\ |
| 97 |
\n\ |
| 98 |
" |
| 99 |
displayString_bs_z= \\z - End of input |
| 100 |
additionalInfo_bs_z= End of input (positional match)\n\nExample:\n\ |
| 101 |
The expression "ing\\z" matches "ing" in text\n\ |
| 102 |
"testing", but doesn't match in text\n\ |
| 103 |
"testing\n\ |
| 104 |
" |
| 105 |
|
| 106 |
### repetition quantifiers ### |
| 107 |
displayString_quest= ? - Greedy match 0 or 1 times |
| 108 |
additionalInfo_quest= Greedy match 0 or 1 times.\n\n\ |
| 109 |
First tries to match the preceding token.\n\ |
| 110 |
Falls back to not matching if this choice made a full match impossible.\n\nExample:\n\ |
| 111 |
The expression "fo?" matches "f", "fo", and "fo" in text\n\ |
| 112 |
"f fo foo". |
| 113 |
displayString_star= * - Greedy match 0 or more times |
| 114 |
additionalInfo_star= Greedy match 0 or more times.\n\n\ |
| 115 |
First tries to match the preceding token as many times as possible.\n\ |
| 116 |
Falls back to matching it less often if this choice made a full match impossible.\n\nExamples:\n\ |
| 117 |
- The expression "fo*" matches "f", "fo", and "foo" in text\n\ |
| 118 |
"f fo foo".\n\ |
| 119 |
- The expression "fo*o\\d" matches all three words in text\n\ |
| 120 |
"fo1 foo2 fooo3".\n\ |
| 121 |
- The expression "<.*>" matches the whole text\n\ |
| 122 |
"<p><b>bold</b>". |
| 123 |
displayString_plus= + - Greedy match 1 or more times |
| 124 |
additionalInfo_plus= Greedy match 1 or more times\n\n\ |
| 125 |
First tries to match the preceding token as many times as possible.\n\ |
| 126 |
Falls back to matching it less often if this choice made a full match impossible.\n\nExamples:\n\ |
| 127 |
- The expression "fo+" matches "fo" and "foo" in text\n\ |
| 128 |
"f fo foo".\n\ |
| 129 |
- The expression "fo+o\\d" matches "foo2" and "fooo3" in text\n\ |
| 130 |
"fo1 foo2 fooo3".\n\ |
| 131 |
- The expression "<.+>" matches the whole text\n\ |
| 132 |
"<p><b>bold</b>", but does not match anywhere in "<>". |
| 133 |
displayString_exact= {n} - Greedy match exactly n times |
| 134 |
additionalInfo_exact= Greedy match exactly n times.\n\nExamples:\n\ |
| 135 |
- The expression "\\\\0[0-3][0-7]{2}" matches all three-digit octal character tokens.\n\ |
| 136 |
- The expression "\\b\\w{4}\\b" matches all four-letter-words\n\ |
| 137 |
such as "Java", "cool", or "food" (but not "dog"). |
| 138 |
displayString_least= {n,} - Greedy match >= n times |
| 139 |
additionalInfo_least= Greedy match >= n times.\n\n\ |
| 140 |
First tries to match the preceding token as many times as possible.\n\ |
| 141 |
Falls back to matching it less often (but at least n times),\n\ |
| 142 |
if this choice made a full match impossible.\n\nExamples:\n\ |
| 143 |
- The expression "fo{2,}" matches "foo" and "fooo" in text\n\ |
| 144 |
"f fo foo fooo".\n\ |
| 145 |
- The expression "fo{2,}o\\d" matches "fooo3" and "foooo4" in text\n\ |
| 146 |
"fo1 foo2 fooo3 foooo4".\n\ |
| 147 |
- The expression "10{3,}[^0]" matches all powers of ten that are larger than one thousand.\n\n\ |
| 148 |
Note: The expressions "{0,}" and "*" are equivalent;\n\ |
| 149 |
likewise, "{1,}" is equivalent to "+". |
| 150 |
displayString_count= {n,m} - Greedy match >= n times but <= m times |
| 151 |
additionalInfo_count= Greedy match >= n times but <= m times.\n\n\ |
| 152 |
First tries to match the preceding token m times.\n\ |
| 153 |
Falls back to matching it less often (but at least n times),\n\ |
| 154 |
if this choice made a full match impossible.\n\nExamples:\n\ |
| 155 |
- The expression "fo{1,2}" matches "fo", "foo", and "foo" in text\n\ |
| 156 |
"f fo foo fooo".\n\ |
| 157 |
- The expression "fo{1,2}o\\d" matches "foo2" and "fooo3" in text\n\ |
| 158 |
"fo1 foo2 fooo3 foooo4".\n\ |
| 159 |
- The expression "^.{70,80}$" matches all the lines that contain\n\ |
| 160 |
between 70 and 80 characters (inclusive). |
| 161 |
|
| 162 |
displayString_questLazy= ?? - Lazy match 0 or 1 times |
| 163 |
additionalInfo_questLazy= Lazy match 0 or 1 times.\n\n\ |
| 164 |
First tries to not match the preceding token.\n\ |
| 165 |
Falls back to matching it if this choice made a full match impossible.\n\nExample:\n\ |
| 166 |
The expression "fo??" matches "f", "f", and "f" in text\n\ |
| 167 |
"f fo foo". |
| 168 |
displayString_starLazy= *? - Lazy match 0 or more times |
| 169 |
additionalInfo_starLazy= Lazy match 0 or more times.\n\n\ |
| 170 |
First tries to not match the preceding token.\n\ |
| 171 |
Falls back to matching it more often if this choice made a full match impossible.\n\nExamples:\n\ |
| 172 |
- The expression "fo*?" matches "f", "f", and "f" in text\n\ |
| 173 |
"f fo foo".\n\ |
| 174 |
- The expression "fo*?o\\d" matches all three words in text\n\ |
| 175 |
"fo1 foo2 fooo3".\n\ |
| 176 |
- The expression "<.*?>" matches "<p>", "<b>", and "</b>" in text\n\ |
| 177 |
"<p><b>bold</b>". Note: a more performant expression for finding\n\ |
| 178 |
xml tags is "<[^>]*>", which avoids backtracking. |
| 179 |
displayString_plusLazy= +? - Lazy match 1 or more times |
| 180 |
additionalInfo_plusLazy= Lazy match 1 or more times\n\n\ |
| 181 |
First tries to match the preceding token once.\n\ |
| 182 |
Falls back to matching it more often if this choice made a full match impossible.\n\nExamples:\n\ |
| 183 |
- The expression "fo+?" matches "fo" and "fo" in text\n\ |
| 184 |
"f fo foo".\n\ |
| 185 |
- The expression "fo+?o\\d" matches "foo2" and "fooo3" in text\n\ |
| 186 |
"fo1 foo2 fooo3".\n\ |
| 187 |
- The expression "<.+?>" matches "<p>", "<b>", and "</b>" in text\n\ |
| 188 |
"<p><b>bold</b>". Note: a more performant expression for finding\n\ |
| 189 |
xml tags is "<[^>]*>", which avoids backtracking. |
| 190 |
displayString_exactLazy= {n}? - Lazy match exactly n times |
| 191 |
additionalInfo_exactLazy= Lazy match exactly n times.\n\n\ |
| 192 |
This expression is equivalent to the expression\n\ |
| 193 |
{n} - Greedy match exactly n times. |
| 194 |
displayString_leastLazy= {n,}? - Lazy match >= n times |
| 195 |
additionalInfo_leastLazy= Lazy match >= n times.\n\n\ |
| 196 |
First tries to match the preceding token n times. Falls back to\n\ |
| 197 |
matching it more often, if this choice made a full match impossible.\n\nExamples:\n\ |
| 198 |
- The expression "fo{2,}?" matches "foo" and "foo" in text\n\ |
| 199 |
"f fo foo fooo".\n\ |
| 200 |
- The expression "fo{2,}?o\\d" matches "fooo3" and "foooo4" in text\n\ |
| 201 |
"fo1 foo2 fooo3 foooo4".\n\ |
| 202 |
- The expression "10{3,}?[^0]" matches all powers of ten that are larger than one thousand.\n\n\ |
| 203 |
Note: The expressions "{0,}?" and "*?" are equivalent;\n\ |
| 204 |
likewise, "{1,}?" is equivalent to "+?". |
| 205 |
displayString_countLazy= {n,m}? - Lazy match >= n times but <= m times |
| 206 |
additionalInfo_countLazy= Lazy match >= n times but <= m times.\n\n\ |
| 207 |
First tries to match the preceding token n times.\n\ |
| 208 |
Falls back to matching it more often (but at most m times),\n\ |
| 209 |
if this choice made a full match impossible.\n\nExamples:\n\ |
| 210 |
- The expression "fo{1,2}?" matches "fo", "fo", and "fo" in text\n\ |
| 211 |
"f fo foo fooo".\n\ |
| 212 |
- The expression "fo{1,2}?o\\d" matches "foo2" and "fooo3" in text\n\ |
| 213 |
"fo1 foo2 fooo3 foooo4".\n\ |
| 214 |
|
| 215 |
displayString_questPoss= ?+ - Possessive match 0 or 1 times (no backtracking) |
| 216 |
additionalInfo_questPoss= Possessive match 0 or 1 times.\n\n\ |
| 217 |
Matches the preceding token if possible. Never backtracks,\n\ |
| 218 |
even if this choice renders a full match impossible.\n\nExample:\n\ |
| 219 |
The expression "fo?+o\\d" matches the first, but not the second line in text\n\ |
| 220 |
"fo1\n\ |
| 221 |
foo1". |
| 222 |
displayString_starPoss= *+ Possessive match 0 or more times (no backtracking) |
| 223 |
additionalInfo_starPoss= Possessive match 0 or more times.\n\n\ |
| 224 |
Tries to match the preceding token as many times as possible. Never backtracks,\n\ |
| 225 |
even if this choice renders a full match impossible.\n\nExamples:\n\ |
| 226 |
- The expression "fo*+" matches "f", "fo" and "foo" in text\n\ |
| 227 |
"f fo foo".\n\ |
| 228 |
- The expression "fo*+o\\d" matches nowhere in text\n\ |
| 229 |
"fo1 foo2 fooo3".\n\ |
| 230 |
- The expression "<.*+>" matches nowhere in text\n\ |
| 231 |
"<p><b>bold</b>". |
| 232 |
displayString_plusPoss= ++ - Possessive match 1 or more times (no backtracking) |
| 233 |
additionalInfo_plusPoss= Possessive match 1 or more times.\n\n\ |
| 234 |
Tries to match the preceding token as many times as possible. Never backtracks,\n\ |
| 235 |
even if this choice renders a full match impossible.\n\nExamples:\n\ |
| 236 |
- The expression "fo++" matches "fo" and "foo" in text\n\ |
| 237 |
"f fo foo".\n\ |
| 238 |
- The expression "fo++o\\d" matches nowhere in text\n\ |
| 239 |
"fo1 foo2 fooo3".\n\ |
| 240 |
- The expression "<.++>" matches nowhere in text\n\ |
| 241 |
"<p><b>bold</b>". |
| 242 |
|
| 243 |
displayString_exactPoss= {n}+ - Possessive match exactly n times (no backtracking) |
| 244 |
additionalInfo_exactPoss= Possessive match exactly n times.\n\n\ |
| 245 |
This expression is equivalent to the expression\n\ |
| 246 |
{n} - Greedy match exactly n times. |
| 247 |
displayString_leastPoss= {n,}+ - Possessive match >= n times (no backtracking) |
| 248 |
additionalInfo_leastPoss= Possessive match >= n times.\n\n\ |
| 249 |
Tries to match the preceding token as many times as possible, but at least n times.\n\ |
| 250 |
Never backtracks, even if this choice renders a full match impossible.\n\nExamples:\n\ |
| 251 |
- The expression "fo{2,}+" matches "foo" and "fooo" in text\n\ |
| 252 |
"f fo foo fooo".\n\ |
| 253 |
- The expression "fo{2,}?o\\d" matches nowhere in text\n\ |
| 254 |
"fo1 foo2 fooo3 foooo4".\n\ |
| 255 |
Note: The expressions "{0,}?" and "*?" are equivalent;\n\ |
| 256 |
likewise, "{1,}?" is equivalent to "+?". |
| 257 |
|
| 258 |
displayString_countPoss= {n,m}+ - Possessive match >= n times but <= m times (no backtracking) |
| 259 |
additionalInfo_countPoss= Possessive match >= n times but <= m times.\n\n\ |
| 260 |
Tries to match the preceding token as many times as possible, \n\ |
| 261 |
at least n times and at most m times.\n\ |
| 262 |
Never backtracks, even if this choice renders a full match impossible.\n\nExamples:\n\ |
| 263 |
- The expression "fo{1,2}+" matches "fo", "foo", and "foo" in text\n\ |
| 264 |
"f fo foo fooo".\n\ |
| 265 |
- The expression "fo{1,2}+o\\d" matches only "fooo3" in text\n\ |
| 266 |
"fo1 foo2 fooo3 foooo4".\n\ |
| 267 |
- The expression "^.{70,80}+$" matches all the lines that contain\n\ |
| 268 |
between 70 and 80 characters (inclusive). |
| 269 |
|
| 270 |
displayString_alt= U|V - Alternation: U or V |
| 271 |
additionalInfo_alt= Alternation.\n\n\ |
| 272 |
First tries to match subexpression U. Falls back and tries to match V if U didn't match.\n\nExamples:\n\ |
| 273 |
- The expression "A|B" applied to text "BA" first matches "B", then "A".\n\ |
| 274 |
- The expression "AB|BC|CD" applied to text "ABC BC DAB" matches, in sequence:\n\ |
| 275 |
"AB" in the first word, the second word "BC", "AB" at the very end. |
| 276 |
displayString_group= (Expr) - Mark Expr as capturing group |
| 277 |
additionalInfo_group= Mark Expr as capturing group.\n\n\ |
| 278 |
Capturing groups are numbered by counting their opening parentheses from left to right.\n\ |
| 279 |
In the expression "((A)(B(C)))", for example, there are four such groups:\n\ |
| 280 |
1 ((A)(B(C)))\n\ |
| 281 |
2 (A)\n\ |
| 282 |
3 (B(C))\n\ |
| 283 |
4 (C)\n\ |
| 284 |
\n\ |
| 285 |
Group zero always stands for the entire expression. During a match,\n\ |
| 286 |
each subsequence of the input sequence that matches such a group is saved.\n\ |
| 287 |
The captured subsequence i may be used later in the expression, via a back reference "\\i",\n\ |
| 288 |
and may also be used in the replace string via "$i".\n\ |
| 289 |
\n\ |
| 290 |
Note: Groups beginning with (? are pure, non-capturing groups that\n\ |
| 291 |
do not capture text and do not count towards the group total. |
| 292 |
|
| 293 |
displayString_bs_i= \\i - Match of the capturing group i |
| 294 |
additionalInfo_bs_i= Match of the capturing group i.\n\n\ |
| 295 |
\\i matches the subsequence that has already been saved as capturing group i.\n\ |
| 296 |
\\0 is not a valid group number in the regular expression.\n\nExample:\n\ |
| 297 |
The expression "(\\d+)\\+\\1" matches "10+10" in text "9+10+10+11".\n\ |
| 298 |
\n\ |
| 299 |
Note: in the replace string, $i stands for the capturing group i. |
| 300 |
|
| 301 |
displayString_bs= \\ - Quote next character |
| 302 |
additionalInfo_bs= Quote next character\n\nExample:\n\ |
| 303 |
The expression "\\{\\n\\}" matches the text "{n}". |
| 304 |
|
| 305 |
displayString_bs_Q= \\Q - Start quoting |
| 306 |
additionalInfo_bs_Q= Start quoting\n\n\ |
| 307 |
All characters between \\Q and the next \\E are taken literally and are not interpreted.\n\nExample:\n\ |
| 308 |
The expression "\\Qnew int[] {42}\\E;" matches text "new int[] {42}". |
| 309 |
displayString_bs_E= \\E - End quoting |
| 310 |
additionalInfo_bs_E= End quoting\n\n\ |
| 311 |
All characters between \\Q and the next \\E are taken literally and are not interpreted.\n\nExample:\n\ |
| 312 |
The expression "\\Qnew int[] {42}\\E;" matches text "new int[] {42}". |
| 313 |
|
| 314 |
displayString_set= [ecl] - Character set |
| 315 |
additionalInfo_set= Character set\n\n\ |
| 316 |
Matches a single character out of the set.\n\nExample:\n\ |
| 317 |
The expression "[ecl]" matches "c" and "l" in text "cold". |
| 318 |
displayString_setExcl= [^ecl] - Excluded character set |
| 319 |
additionalInfo_setExcl= Excluded character set\n\n\ |
| 320 |
Matches a single character that is not one of the excluded characters.\n\nExamples:\n\ |
| 321 |
The expression "[^ecl]" matches "o" and "d" in text "cold".\n\ |
| 322 |
The expression "[a-z&&[^ecl]]" matches any character from a to z, excluding e, c, and l. |
| 323 |
displayString_setRange= [c-l] - Character range |
| 324 |
additionalInfo_setRange= Character range\n\n\ |
| 325 |
Matches a single character out of the range from 'c' to 'l'.\n\nExamples:\n\ |
| 326 |
The expression "[c-l]" matches "c", "l", and "d" in text "cold".\n\ |
| 327 |
The expression "[a-z&&[^ecl]]" matches any character from a to z, excluding e, c, and l. |
| 328 |
displayString_setInter= && - Intersection of character sets |
| 329 |
additionalInfo_setInter= Intersection of character sets\n\n\ |
| 330 |
Matches a character that is in both of the given sets.\n\nExample:\n\ |
| 331 |
The expression "[a-z&&[^ecl]]" matches any character from a to z, excluding e, c, and l. |
| 332 |
|
| 333 |
displayString_posix= \\p{Class} - POSIX or Unicode character class |
| 334 |
additionalInfo_posix= POSIX or Unicode character class\n\n\ |
| 335 |
Matches a character from the given character class 'Class'.\n\ |
| 336 |
Valid classes are:\n\ |
| 337 |
\n\ |
| 338 |
- POSIX character classes (US-ASCII only):\n\ |
| 339 |
\ Lower, Upper, ASCII, Alpha, Digit, Alnum, Punct,\n\ |
| 340 |
\ Graph, Print, Blank, Cntrl, XDigit, and Space.\n\ |
| 341 |
\n\ |
| 342 |
- Unicode blocks and categories, e.g.:\n\ |
| 343 |
\ BasicLatin\n\ |
| 344 |
\ Latin-1Supplement\n\ |
| 345 |
\ Greek\n\ |
| 346 |
\ Lu: Uppercase Letter\n\ |
| 347 |
\ Ll: Lowercase Letter\n\ |
| 348 |
\ L: Letter\n\ |
| 349 |
\ N: Number\n\ |
| 350 |
\ Z: Separator\n\ |
| 351 |
\ LD: Letter or Digit\n\ |
| 352 |
\ L1: Latin-1 |
| 353 |
|
| 354 |
displayString_posixNot= \\P{Class} - Excluded POSIX or Unicode character class |
| 355 |
additionalInfo_posixNot= Excluded POSIX or Unicode character class\n\n\ |
| 356 |
Negation of character set \\p{Class}. Example:\n\ |
| 357 |
\\P{ASCII} is equivalent to [^\\p{ASCII}] and matches all non-ASCII characters.\n\n\ |
| 358 |
Valid classes are:\n\ |
| 359 |
\n\ |
| 360 |
- POSIX character classes (US-ASCII only):\n\ |
| 361 |
\ Lower, Upper, ASCII, Alpha, Digit, Alnum, Punct,\n\ |
| 362 |
\ Graph, Print, Blank, Cntrl, XDigit, and Space.\n\ |
| 363 |
\n\ |
| 364 |
- Unicode blocks and categories, e.g.:\n\ |
| 365 |
\ BasicLatin\n\ |
| 366 |
\ Latin-1Supplement\n\ |
| 367 |
\ Greek\n\ |
| 368 |
\ Lu: Uppercase Letter\n\ |
| 369 |
\ Ll: Lowercase Letter\n\ |
| 370 |
\ L: Letter\n\ |
| 371 |
\ N: Number\n\ |
| 372 |
\ Z: Separator\n\ |
| 373 |
\ LD: Letter or Digit\n\ |
| 374 |
\ L1: Latin-1 |
| 375 |
|
| 376 |
|
| 377 |
#Flags: |
| 378 |
displayString_flag= (?ismd-ismd) - Turn flags on or off |
| 379 |
additionalInfo_flag= Turn flags on and off for the rest of the matching process.\n\n\ |
| 380 |
Flags before the dash are turned on; those after the dash are turned off.\n\ |
| 381 |
The following flags are supported:\n\ |
| 382 |
- i: case-insensitive matching\n\ |
| 383 |
\n\ |
| 384 |
- s: single-line, or dotall matching mode:\n\ |
| 385 |
\ The expression . matches any character, including a line terminator.\n\ |
| 386 |
\n\ |
| 387 |
- m: multiline matching mode:\n\ |
| 388 |
\ The expressions ^ and $ match just after or just before,\n\ |
| 389 |
\ respectively, a line terminator or the end of the input sequence.\n\ |
| 390 |
\ By default these expressions only match at the beginning and the\n\ |
| 391 |
\ end of the entire input sequence.\n\ |
| 392 |
\n\ |
| 393 |
- d: Unix lines matching mode:\n\ |
| 394 |
\ Only the '\\n' line terminator\n\ |
| 395 |
\ is recognized in the behavior of ., ^, and $ |
| 396 |
# - u: unicode-aware case folding:\n\ |
| 397 |
# Case-insensitive matching, when enabled, is done in a manner consistent\n\ |
| 398 |
# with the Unicode Standard. By default, case-insensitive matching\n\ |
| 399 |
# assumes that only characters in the US-ASCII charset are being matched. |
| 400 |
# - c: canonical equivalence\n\ |
| 401 |
# Two characters will be considered to match if, and only if, their full\n\ |
| 402 |
# canonical decompositions match. The expression "a\\\u0075030A", for example,\n\ |
| 403 |
# will match the string "a\u030A" when this flag is specified.\n\ |
| 404 |
# By default, matching does not take canonical equivalence into account. |
| 405 |
# - x: comments mode\n\ |
| 406 |
# Whitespace is ignored, and embedded comments starting with\n\ |
| 407 |
# # are ignored until the end of a line.\n\ |
| 408 |
|
| 409 |
displayString_flagExpr= (?ismd-ismd:Expr) - Turn flags on or off in Expr |
| 410 |
additionalInfo_flagExpr= Turn flags on and off in Expr.\n\n\ |
| 411 |
Flags before the dash are turned on; those after the dash are turned off.\n\ |
| 412 |
The following flags are supported:\n\ |
| 413 |
- i: case-insensitive matching\n\ |
| 414 |
\n\ |
| 415 |
- s: single-line, or dotall matching mode:\n\ |
| 416 |
\ The expression . matches any character, including a line terminator.\n\ |
| 417 |
\n\ |
| 418 |
- m: multiline matching mode:\n\ |
| 419 |
\ The expressions ^ and $ match just after or just before,\n\ |
| 420 |
\ respectively, a line terminator or the end of the input sequence.\n\ |
| 421 |
\ By default these expressions only match at the beginning and the\n\ |
| 422 |
\ end of the entire input sequence.\n\ |
| 423 |
\n\ |
| 424 |
- d: Unix lines matching mode:\n\ |
| 425 |
\ Only the '\\n' line terminator\n\ |
| 426 |
\ is recognized in the behavior of ., ^, and $ |
| 427 |
|
| 428 |
|
| 429 |
#Noncapturing groups: |
| 430 |
displayString_nonCap= (?:Expr) - Non-capturing group |
| 431 |
additionalInfo_nonCap= Non-capturing group of regular expression Expr.\n\n\ |
| 432 |
The group is not saved in a back reference.\n\nExample:\n\ |
| 433 |
The expression "(?:\\w+) (\\d+)" matches "bug 42" in text "It's bug 42.".\n\ |
| 434 |
A back reference "$1" in the replace string will be replaced by "42". |
| 435 |
|
| 436 |
displayString_atomicCap= (?>Expr) - Non-capturing atomic group |
| 437 |
additionalInfo_atomicCap= Non-capturing atomic group of regular expression Expr.\n\n\ |
| 438 |
Matches the regular expression Expr once, but does not backtrack into the expression\n\ |
| 439 |
again if the first match did not prove to be successful later on.\n\ |
| 440 |
The group is not saved in a back reference. |
| 441 |
|
| 442 |
#Lookaround: |
| 443 |
displayString_posLookahead= (?=Expr) - Zero-width positive lookahead |
| 444 |
additionalInfo_posLookahead= Expr, via zero-width positive lookahead.\n\n\ |
| 445 |
Matches a position (zero-width: does not consume the matched characters),\n\ |
| 446 |
where the next characters (-> lookahead)\n\ |
| 447 |
do match (-> positive) the embedded expression Expr.\n\nExamples:\n\ |
| 448 |
- The expression "var(?==)" matches only the first "var" in text "var=17; other=var;".\n\ |
| 449 |
- The expression "\\b(?=\\w{7}\\b)\\w*clip\\w*\\b" matches any\n\ |
| 450 |
seven-letter-word that contains "clip". It matches "Eclipse", but not "paperclip". |
| 451 |
|
| 452 |
displayString_negLookahead= (?!Expr) - Zero-width negative lookahead |
| 453 |
additionalInfo_negLookahead= Expr, via zero-width negative lookahead.\n\n\ |
| 454 |
Matches a position (zero-width: does not consume the matched characters),\n\ |
| 455 |
where the next characters (-> lookahead)\n\ |
| 456 |
do not match (-> negative) the embedded expression Expr.\n\nExamples:\n\ |
| 457 |
- The expression "var(?!=)" matches only the second "var" in text "var=17; other=var;".\n\ |
| 458 |
- The expression "\\b(?!\\w{5,7}\\b)\\w*clip\\w*\\b" matches any\n\ |
| 459 |
word that contains "clip" and consists of less than 5 or more than 7 characters.\n\ |
| 460 |
It matches "clip" and "paperclip", but not "Eclipse". |
| 461 |
|
| 462 |
displayString_posLookbehind= (?<=Expr) - Zero-width positive lookbehind |
| 463 |
additionalInfo_posLookbehind= Expr, via zero-width positive lookbehind.\n\n\ |
| 464 |
Matches a position (zero-width: does not consume the matched characters),\n\ |
| 465 |
where the previous characters (-> lookbehind)\n\ |
| 466 |
do match (-> positive) the embedded expression Expr.\n\nExample:\n\ |
| 467 |
- The expression "\\w{5,}+(?<=as)\\b" matches "alias" and "bananas",\n\ |
| 468 |
but does not match "peas", "apples", or "Alaska". |
| 469 |
|
| 470 |
displayString_negLookbehind= (?<!Expr) - Zero-width negative lookbehind |
| 471 |
additionalInfo_negLookbehind= Expr, via zero-width negative lookbehind.\n\n\ |
| 472 |
Matches a position (zero-width: does not consume the matched characters),\n\ |
| 473 |
where the previous characters (-> lookbehind)\n\ |
| 474 |
do not match (-> negative) the embedded expression Expr.\n\nExample:\n\ |
| 475 |
- The expression "\\w{5,}+(?<!as)\\b" matches "Eclipse" and "apples",\n\ |
| 476 |
but does not match "peas" or "bananas". |
| 477 |
|
| 478 |
#Replace string: |
| 479 |
displayString_dollar= $i - Match of the capturing group i |
| 480 |
additionalInfo_dollar= Match of the capturing group i.\n\n\ |
| 481 |
$i is the string that has been saved as capturing group i.\n\ |
| 482 |
$0 is the subsequence matched by the entire expression.\n\ |
| 483 |
\n\ |
| 484 |
Note: in the find expression, \\i stands for the capturing group i. |
| 485 |
displayString_replace_bs= \\ - Quote next character |
| 486 |
additionalInfo_replace_bs= Quote next character\n\nExamples:\n\ |
| 487 |
"\\$" will be replaced by "$".\n\ |
| 488 |
"\\a" will be replaced by "a".\n\ |
| 489 |
"\\\\" will be replaced by "\\". |
| 490 |
displayString_tab= Tab - The tabulator character |
| 491 |
additionalInfo_tab= The tabulator character (\\t in the find expression). |
| 492 |
displayString_cr= CR - The carriage return character |
| 493 |
additionalInfo_cr= The carriage return character (\\r or \\x0D in the find expression). |
| 494 |
displayString_nl= Newline - The newline character |
| 495 |
additionalInfo_nl= The newline character (\\n or \\x0A in the find expression). |