Debian Codegraph @

translations/manual/regexp_quick_reference.pot

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: calibre 9.15.0\n"
10 "Report-Msgid-Bugs-To: \n"
11 "POT-Creation-Date: 2026-09-18 07:37+0530\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <[email protected]>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:2
20 msgid "Quick reference for regexp syntax"
21 msgstr ""
22
23 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:4
24 msgid "This checklist summarizes the most commonly used/hard to remember parts of the regexp engine available in most parts of calibre."
25 msgstr ""
26
27 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:10
28 msgid "Contents"
29 msgstr ""
30
31 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:13
32 msgid "Character classes"
33 msgstr ""
34
35 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:15
36 msgid "Character classes are useful to represent different groups of characters, succinctly."
37 msgstr ""
38
39 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:18
40 msgid "Examples:"
41 msgstr ""
42
43 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:21
44 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:52
45 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:241
46 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:271
47 msgid "**Representation**"
48 msgstr ""
49
50 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:21
51 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:52
52 msgid "**Class**"
53 msgstr ""
54
55 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:24
56 msgid "``[a-z]``"
57 msgstr ""
58
59 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:24
60 msgid "Lowercase letters. Does not include characters with accent mark and ligatures"
61 msgstr ""
62
63 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:27
64 msgid "``[a-z0-9]``"
65 msgstr ""
66
67 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:27
68 msgid "Lowercase letters from a to z or numbers from 0 to 9"
69 msgstr ""
70
71 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:29
72 msgid "``[A-Za-z-]``"
73 msgstr ""
74
75 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:29
76 msgid "Uppercase or lowercase letters, or a dash. To include the dash in a class, you must put it at the beginning or at the end so as not to confuse it with the hyphen that specifies a range of characters"
77 msgstr ""
78
79 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:33
80 msgid "``[^0-9]``"
81 msgstr ""
82
83 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:33
84 msgid "Any character except a digit. The caret (^) placed at the beginning of the class excludes the characters of the class (complemented class)"
85 msgstr ""
86
87 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:36
88 msgid "``[[a-z]--[aeiouy]]``"
89 msgstr ""
90
91 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:36
92 msgid "The lowercase consonants. A class can be included in a class. The characters ``--`` exclude what follows them"
93 msgstr ""
94
95 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:39
96 msgid "``[\\w--[\\d_]]``"
97 msgstr ""
98
99 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:39
100 msgid "All letters (including foreign accented characters). Abbreviated classes can be used inside a class"
101 msgstr ""
102
103 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:44
104 msgid "Example::"
105 msgstr ""
106
107 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:49
108 msgid "Shorthand character classes"
109 msgstr ""
110
111 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:55
112 msgid "``\\d``"
113 msgstr ""
114
115 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:55
116 msgid "A digit (same as ``[0-9]``)"
117 msgstr ""
118
119 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:57
120 msgid "``\\D``"
121 msgstr ""
122
123 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:57
124 msgid "Any non-numeric character (same as ``[^0-9]``)"
125 msgstr ""
126
127 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:59
128 msgid "``\\w``"
129 msgstr ""
130
131 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:59
132 msgid "An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent mark and ligatures"
133 msgstr ""
134
135 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:62
136 msgid "``\\W``"
137 msgstr ""
138
139 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:62
140 msgid "Any “non-word” character"
141 msgstr ""
142
143 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:64
144 msgid "``\\s``"
145 msgstr ""
146
147 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:64
148 msgid "Space, non-breaking space, tab, carriage return"
149 msgstr ""
150
151 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:66
152 msgid "``\\S``"
153 msgstr ""
154
155 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:66
156 msgid "Any “non-whitespace” character"
157 msgstr ""
158
159 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:68
160 msgid "``.``"
161 msgstr ""
162
163 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:68
164 msgid "Any character except newline. Use the “dot all” checkbox or the ``(?s)`` regexp modifier to include the newline character."
165 msgstr ""
166
167 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:73
168 msgid "The quantifiers"
169 msgstr ""
170
171 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:76
172 msgid "**Quantifier**"
173 msgstr ""
174
175 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:76
176 msgid "**Number of occurrences of the expression preceding the quantifier**"
177 msgstr ""
178
179 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:79
180 msgid "``?``"
181 msgstr ""
182
183 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:79
184 msgid "0 or 1 occurrence of the expression. Same as ``{0,1}``"
185 msgstr ""
186
187 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:81
188 msgid "``+``"
189 msgstr ""
190
191 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:81
192 msgid "1 or more occurrences of the expression. Same as ``{1,}``"
193 msgstr ""
194
195 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:83
196 msgid "``*``"
197 msgstr ""
198
199 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:83
200 msgid "0, 1 or more occurrences of the expression. Same as ``{0,}``"
201 msgstr ""
202
203 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:85
204 msgid "``{n}``"
205 msgstr ""
206
207 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:85
208 msgid "Exactly n occurrences of the expression"
209 msgstr ""
210
211 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:87
212 msgid "``{min,max}``"
213 msgstr ""
214
215 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:87
216 msgid "Number of occurrences between the minimum and maximum values included"
217 msgstr ""
218
219 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:89
220 msgid "``{min,}``"
221 msgstr ""
222
223 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:89
224 msgid "Number of occurrences between the minimum value included and infinity"
225 msgstr ""
226
227 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:91
228 msgid "``{,max}``"
229 msgstr ""
230
231 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:91
232 msgid "Number of occurrences between 0 and the maximum value included"
233 msgstr ""
234
235 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:97
236 msgid "Greed"
237 msgstr ""
238
239 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:99
240 msgid "By default, with quantifiers, the regular expression engine is greedy: it extends the selection as much as possible. This often causes surprises, at first. ``?`` follows a quantifier to make it lazy. Avoid putting two in the same expression, the result can be unpredictable."
241 msgstr ""
242
243 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:104
244 msgid "Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it exponentially increases processing time."
245 msgstr ""
246
247 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:108
248 msgid "Alternation"
249 msgstr ""
250
251 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:110
252 msgid "The ``|`` character in a regular expression is a logical ``OR``. It means that either the preceding or the following expression can match."
253 msgstr ""
254
255 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:114
256 msgid "Exclusion"
257 msgstr ""
258
259 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:116
260 msgid "Method 1"
261 msgstr ""
262
263 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:118
264 msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``"
265 msgstr ""
266
267 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:120
268 msgid "Example:"
269 msgstr ""
270
271 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:122
272 msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``"
273 msgstr ""
274
275 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:124
276 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:132
277 msgid "selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in \"Blabla\"."
278 msgstr ""
279
280 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:126
281 msgid "Method 2"
282 msgstr ""
283
284 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:128
285 msgid "``pattern_to_exclude\\K|(pattern_to_select)``"
286 msgstr ""
287
288 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:130
289 msgid "``\"Blabla\"\\K|(Blabla)``"
290 msgstr ""
291
292 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:135
293 msgid "Anchors"
294 msgstr ""
295
296 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:137
297 msgid "An anchor is a way to match a logical location in a string, rather than a character. The most useful anchors for text processing are:"
298 msgstr ""
299
300 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:140
301 msgid "``\\b``"
302 msgstr ""
303
304 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:141
305 msgid "Designates a word boundary, i.e. a transition from space to non-space character. For example, you can use ``\\bsurd`` to match ``the surd`` but not ``absurd``."
306 msgstr ""
307
308 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:145
309 msgid "``^``"
310 msgstr ""
311
312 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:146
313 msgid "Matches the start of a line (in multi-line mode, which is the default)"
314 msgstr ""
315
316 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:149
317 msgid "``$``"
318 msgstr ""
319
320 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:150
321 msgid "Matches the end of a line (in multi-line mode, which is the default)"
322 msgstr ""
323
324 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:152
325 msgid "``\\K``"
326 msgstr ""
327
328 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:153
329 msgid "Resets the start position of the selection to its position in the pattern. Some regexp engines (but not calibre) do not allow lookbehind of variable length, especially with quantifiers. When you can use ``\\K`` with these engines, it also allows you to get rid of this limit by writing the equivalent of a positive lookbehind of variable length."
330 msgstr ""
331
332 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:160
333 msgid "Groups"
334 msgstr ""
335
336 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:162
337 msgid "``(expression)``"
338 msgstr ""
339
340 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:163
341 msgid "Capturing group, which stores the selection and can be recalled later in the *search* or *replace* patterns with ``\\n``, where ``n`` is the sequence number of the capturing group (starting at 1 in reading order)"
342 msgstr ""
343
344 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:167
345 msgid "``(?:expression)``"
346 msgstr ""
347
348 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:168
349 msgid "Group that does not capture the selection"
350 msgstr ""
351
352 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:170
353 msgid "``(?>expression)``"
354 msgstr ""
355
356 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:171
357 msgid "Atomic Group: As soon as the expression is satisfied, the regexp engine passes, and if the rest of the pattern fails, it will not backtrack to try other combinations with the expression. Atomic groups do not capture."
358 msgstr ""
359
360 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:176
361 msgid "``(?|expression)``"
362 msgstr ""
363
364 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:177
365 msgid "Branch reset group: the branches of the alternations included in the expression share the same group numbers"
366 msgstr ""
367
368 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:180
369 msgid "``(?<name>expression)``"
370 msgstr ""
371
372 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:181
373 msgid "Group named “name”. The selection can be recalled later in the *search* pattern by ``(?P=name)`` and in the *replace* by ``\\g<name>``. Two different groups can use the same name."
374 msgstr ""
375
376 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:187
377 msgid "Lookarounds"
378 msgstr ""
379
380 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:190
381 msgid "**Lookaround**"
382 msgstr ""
383
384 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:190
385 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:241
386 msgid "**Meaning**"
387 msgstr ""
388
389 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:193
390 msgid "``?=``"
391 msgstr ""
392
393 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:193
394 msgid "Positive lookahead (to be placed after the selection)"
395 msgstr ""
396
397 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:196
398 msgid "``?!``"
399 msgstr ""
400
401 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:196
402 msgid "Negative lookahead (to be placed after the selection)"
403 msgstr ""
404
405 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:199
406 msgid "``?<=``"
407 msgstr ""
408
409 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:199
410 msgid "Positive lookbehind (to be placed before the selection)"
411 msgstr ""
412
413 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:202
414 msgid "``?<!``"
415 msgstr ""
416
417 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:202
418 msgid "Negative lookbehind (to be placed before the selection)"
419 msgstr ""
420
421 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:206
422 msgid "Lookaheads and lookbehinds do not consume characters, they are zero length and do not capture. They are atomic groups: as soon as the assertion is satisfied, the regexp engine passes, and if the rest of the pattern fails, it will not backtrack inside the lookaround to try other combinations."
423 msgstr ""
424
425 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:211
426 msgid "When looking for multiple matches in a string, at the starting position of each match attempt, a lookbehind can inspect the characters before the current position. Therefore, on the string 123, the pattern ``(?<=\\d)\\d`` (a digit preceded by a digit) should, in theory, select 2 and 3. On the other hand, ``\\d\\K\\d`` can only select 2, because the starting position after the first selection is immediately before 3, and there are not enough digits for a second match. Similarly, ``\\d(\\d)`` only captures 2. In calibre's regexp engine practice, the positive lookbehind behaves in the same way, and selects only 2, contrary to theory."
427 msgstr ""
428
429 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:221
430 msgid "Groups can be placed inside lookarounds, but capture is rarely useful. Nevertheless, if it is useful, it will be necessary to be very careful in the use of a quantifier in a lookbehind: the greed associated with the absence of backtracking can give a surprising capture. For this reason, use ``\\K`` rather than a positive lookbehind when you have a quantifier (or worse, several) in a capturing group of the positive lookbehind."
431 msgstr ""
432
433 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:228
434 msgid "Example of negative lookahead:"
435 msgstr ""
436
437 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:230
438 msgid "``(?![^<>{}]*[>}])``"
439 msgstr ""
440
441 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:232
442 msgid "Placed at the end of the pattern prevents selecting within a tag or a style embedded in the file."
443 msgstr ""
444
445 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:234
446 msgid "Whenever possible, it is always better to \"anchor\" the lookarounds, to reduce the number of steps necessary to obtain the result."
447 msgstr ""
448
449 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:238
450 msgid "Recursion"
451 msgstr ""
452
453 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:244
454 msgid "``(?R)``"
455 msgstr ""
456
457 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:244
458 msgid "Recursion of the entire pattern"
459 msgstr ""
460
461 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:247
462 msgid "``(?1)``"
463 msgstr ""
464
465 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:247
466 msgid "Recursion of the only pattern of the numbered capturing group, here group 1"
467 msgstr ""
468
469 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:251
470 msgid "Recursion is calling oneself. This is useful for balanced queries, such as quoted strings, which can contain embedded quoted strings. Thus, if during the processing of a string between double quotation marks, we encounter the beginning of a new string between double quotation marks, well we know how to do, and we call ourselves. Then we have a pattern like::"
471 msgstr ""
472
473 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:259
474 msgid "To select a string between double quotation marks without stopping on an embedded string::"
475 msgstr ""
476
477 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:263
478 msgid "This template can also be used to modify pairs of tags that can be embedded, such as ``<div>`` tags."
479 msgstr ""
480
481 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:268
482 msgid "Special characters"
483 msgstr ""
484
485 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:271
486 msgid "**Character**"
487 msgstr ""
488
489 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:274
490 msgid "``\\t``"
491 msgstr ""
492
493 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:274
494 msgid "tabulation"
495 msgstr ""
496
497 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:277
498 msgid "``\\n``"
499 msgstr ""
500
501 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:277
502 msgid "line break"
503 msgstr ""
504
505 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:280
506 msgid "``\\x20``"
507 msgstr ""
508
509 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:280
510 msgid "(breakable) space"
511 msgstr ""
512
513 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:283
514 msgid "``\\xa0``"
515 msgstr ""
516
517 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:283
518 msgid "no-break space"
519 msgstr ""
520
521 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:288
522 msgid "Meta-characters"
523 msgstr ""
524
525 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:290
526 msgid "Meta-characters are those that have a special meaning for the regexp engine. Of these, twelve must be preceded by an escape character, the backslash (``\\``), to lose their special meaning and become a regular character again::"
527 msgstr ""
528
529 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:296
530 msgid "Seven other meta-characters do not need to be preceded by a backslash (but can be without any other consequence)::"
531 msgstr ""
532
533 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:302
534 msgid "Special characters lose their status if they are used inside a class (between brackets ``[]``). The closing bracket and the dash have a special status in a class. Outside the class, the dash is a simple literal, the closing bracket remains a meta-character."
535 msgstr ""
536
537 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:307
538 msgid "The slash (/) and the number sign (or hash character) (#) are not meta-characters, they don’t need to be escaped."
539 msgstr ""
540
541 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:310
542 msgid "In some tools, like regex101.com with the Python engine, double quotes have the special status of separator, and must be escaped, or the options changed. This is not the case in the editor of calibre."
543 msgstr ""
544
545 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:315
546 msgid "Modes"
547 msgstr ""
548
549 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:317
550 msgid "``(?s)``"
551 msgstr ""
552
553 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:318
554 msgid "Causes the dot (``.``) to match newline characters as well"
555 msgstr ""
556
557 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:320
558 msgid "``(?m)``"
559 msgstr ""
560
561 #: ../../../home/kovid/work/calibre/manual/regexp_quick_reference.rst:321
562 msgid "Makes the ``^`` and ``$`` anchors match the start and end of lines instead of the start and end of the entire string."
563 msgstr ""