| 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 |
# Translators: |
| 7 |
# Merarom <[email protected]>, 2018 |
| 8 |
# efef6ec5b435a041fce803c7f8af77d2_2341d43, 2026 |
| 9 |
# Jonatan Nyberg, 2026 |
| 10 |
# |
| 11 |
#, fuzzy |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: calibre 9.14.0\n" |
| 15 |
"Report-Msgid-Bugs-To: \n" |
| 16 |
"POT-Creation-Date: 2026-09-16 15:05+0000\n" |
| 17 |
"PO-Revision-Date: 2017-12-15 03:02+0000\n" |
| 18 |
"Last-Translator: Jonatan Nyberg, 2026\n" |
| 19 |
"Language-Team: Swedish (https://app.transifex.com/calibre/teams/19337/sv/)\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Language: sv\n" |
| 24 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 25 |
|
| 26 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:2 |
| 27 |
msgid "Quick reference for regexp syntax" |
| 28 |
msgstr "Snabbreferens för regexp-syntax" |
| 29 |
|
| 30 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:4 |
| 31 |
msgid "" |
| 32 |
"This checklist summarizes the most commonly used/hard to remember parts of " |
| 33 |
"the regexp engine available in most parts of calibre." |
| 34 |
msgstr "" |
| 35 |
"Denna checklista sammanfattar de delar av regexp-motorn som används oftast " |
| 36 |
"eller är svårast att komma ihåg. Motorn finns tillgänglig i de flesta delar " |
| 37 |
"av calibre." |
| 38 |
|
| 39 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:10 |
| 40 |
msgid "Contents" |
| 41 |
msgstr "Innehåll" |
| 42 |
|
| 43 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:13 |
| 44 |
msgid "Character classes" |
| 45 |
msgstr "Teckenklasser" |
| 46 |
|
| 47 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:15 |
| 48 |
msgid "" |
| 49 |
"Character classes are useful to represent different groups of characters, " |
| 50 |
"succinctly." |
| 51 |
msgstr "" |
| 52 |
"Teckenklasser är ett kortfattat sätt att representera olika grupper av " |
| 53 |
"tecken." |
| 54 |
|
| 55 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:18 |
| 56 |
msgid "Examples:" |
| 57 |
msgstr "Exempel:" |
| 58 |
|
| 59 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21 |
| 60 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52 |
| 61 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241 |
| 62 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271 |
| 63 |
msgid "**Representation**" |
| 64 |
msgstr "**Notation**" |
| 65 |
|
| 66 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21 |
| 67 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52 |
| 68 |
msgid "**Class**" |
| 69 |
msgstr "**Klass**" |
| 70 |
|
| 71 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24 |
| 72 |
msgid "``[a-z]``" |
| 73 |
msgstr "``[a-z]``" |
| 74 |
|
| 75 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24 |
| 76 |
msgid "" |
| 77 |
"Lowercase letters. Does not include characters with accent mark and " |
| 78 |
"ligatures" |
| 79 |
msgstr "Gemener. Omfattar inte bokstäver med accenttecken eller ligaturer" |
| 80 |
|
| 81 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27 |
| 82 |
msgid "``[a-z0-9]``" |
| 83 |
msgstr "``[a-z0-9]``" |
| 84 |
|
| 85 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27 |
| 86 |
msgid "Lowercase letters from a to z or numbers from 0 to 9" |
| 87 |
msgstr "Gemener från a till z eller siffror från 0 till 9" |
| 88 |
|
| 89 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29 |
| 90 |
msgid "``[A-Za-z-]``" |
| 91 |
msgstr "``[A-Za-z-]``" |
| 92 |
|
| 93 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29 |
| 94 |
msgid "" |
| 95 |
"Uppercase or lowercase letters, or a dash. To include the dash in a class, " |
| 96 |
"you must put it at the beginning or at the end so as not to confuse it with " |
| 97 |
"the hyphen that specifies a range of characters" |
| 98 |
msgstr "" |
| 99 |
"Versaler, gemener eller ett bindestreck. För att inkludera bindestrecket i " |
| 100 |
"en klass måste du placera det i början eller slutet, så att det inte " |
| 101 |
"förväxlas med bindestrecket som anger ett teckenintervall" |
| 102 |
|
| 103 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 104 |
msgid "``[^0-9]``" |
| 105 |
msgstr "``[^0-9]``" |
| 106 |
|
| 107 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 108 |
msgid "" |
| 109 |
"Any character except a digit. The caret (^) placed at the beginning of the " |
| 110 |
"class excludes the characters of the class (complemented class)" |
| 111 |
msgstr "" |
| 112 |
"Ett valfritt tecken utom en siffra. Cirkumflextecknet (^) i början av " |
| 113 |
"klassen utesluter tecknen i klassen (negerad klass)" |
| 114 |
|
| 115 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 116 |
msgid "``[[a-z]--[aeiouy]]``" |
| 117 |
msgstr "``[[a-z]--[aeiouy]]``" |
| 118 |
|
| 119 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 120 |
msgid "" |
| 121 |
"The lowercase consonants. A class can be included in a class. The characters" |
| 122 |
" ``--`` exclude what follows them" |
| 123 |
msgstr "" |
| 124 |
"Gemena konsonanter. En klass kan ingå i en annan klass. Tecknen ``--`` " |
| 125 |
"utesluter det som följer efter dem" |
| 126 |
|
| 127 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 128 |
msgid "``[\\w--[\\d_]]``" |
| 129 |
msgstr "``[\\w--[\\d_]]``" |
| 130 |
|
| 131 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 132 |
msgid "" |
| 133 |
"All letters (including foreign accented characters). Abbreviated classes can" |
| 134 |
" be used inside a class" |
| 135 |
msgstr "" |
| 136 |
"Alla bokstäver (inklusive utländska bokstäver med accenttecken). Förkortade " |
| 137 |
"klasser kan användas inom en klass" |
| 138 |
|
| 139 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:44 |
| 140 |
msgid "Example::" |
| 141 |
msgstr "Exempel::" |
| 142 |
|
| 143 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:49 |
| 144 |
msgid "Shorthand character classes" |
| 145 |
msgstr "Förkortade teckenklasser" |
| 146 |
|
| 147 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 148 |
msgid "``\\d``" |
| 149 |
msgstr "``\\d``" |
| 150 |
|
| 151 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 152 |
msgid "A digit (same as ``[0-9]``)" |
| 153 |
msgstr "En siffra (samma som ``[0-9]``)" |
| 154 |
|
| 155 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 156 |
msgid "``\\D``" |
| 157 |
msgstr "``\\D``" |
| 158 |
|
| 159 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 160 |
msgid "Any non-numeric character (same as ``[^0-9]``)" |
| 161 |
msgstr "Ett valfritt icke-numeriskt tecken (samma som ``[^0-9]``)" |
| 162 |
|
| 163 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 164 |
msgid "``\\w``" |
| 165 |
msgstr "``\\w``" |
| 166 |
|
| 167 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 168 |
msgid "" |
| 169 |
"An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent" |
| 170 |
" mark and ligatures" |
| 171 |
msgstr "" |
| 172 |
"Ett alfanumeriskt tecken (``[a-zA-Z0-9]``), inklusive bokstäver med " |
| 173 |
"accenttecken och ligaturer" |
| 174 |
|
| 175 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 176 |
msgid "``\\W``" |
| 177 |
msgstr "``\\W``" |
| 178 |
|
| 179 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 180 |
msgid "Any “non-word” character" |
| 181 |
msgstr "Ett valfritt tecken som inte är ett ordtecken" |
| 182 |
|
| 183 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 184 |
msgid "``\\s``" |
| 185 |
msgstr "``\\s``" |
| 186 |
|
| 187 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 188 |
msgid "Space, non-breaking space, tab, carriage return" |
| 189 |
msgstr "Mellanslag, fast mellanslag, tabb, vagnretur" |
| 190 |
|
| 191 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 192 |
msgid "``\\S``" |
| 193 |
msgstr "``\\S``" |
| 194 |
|
| 195 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 196 |
msgid "Any “non-whitespace” character" |
| 197 |
msgstr "Ett valfritt tecken som inte är ett blanktecken" |
| 198 |
|
| 199 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 200 |
msgid "``.``" |
| 201 |
msgstr "``.``" |
| 202 |
|
| 203 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 204 |
msgid "" |
| 205 |
"Any character except newline. Use the “dot all” checkbox or the ``(?s)`` " |
| 206 |
"regexp modifier to include the newline character." |
| 207 |
msgstr "" |
| 208 |
"Ett valfritt tecken utom nyrad. Använd kryssrutan ”Punkt matchar allt” eller" |
| 209 |
" regexp-modifieraren ``(?s)`` för att även matcha nyradstecken." |
| 210 |
|
| 211 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:73 |
| 212 |
msgid "The quantifiers" |
| 213 |
msgstr "Kvantifierare" |
| 214 |
|
| 215 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 216 |
msgid "**Quantifier**" |
| 217 |
msgstr "**Kvantifierare**" |
| 218 |
|
| 219 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 220 |
msgid "**Number of occurrences of the expression preceding the quantifier**" |
| 221 |
msgstr "**Antal förekomster av uttrycket som föregår kvantifieraren**" |
| 222 |
|
| 223 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 224 |
msgid "``?``" |
| 225 |
msgstr "``?``" |
| 226 |
|
| 227 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 228 |
msgid "0 or 1 occurrence of the expression. Same as ``{0,1}``" |
| 229 |
msgstr "0 eller 1 förekomst av uttrycket. Samma som ``{0,1}``" |
| 230 |
|
| 231 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 232 |
msgid "``+``" |
| 233 |
msgstr "``+``" |
| 234 |
|
| 235 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 236 |
msgid "1 or more occurrences of the expression. Same as ``{1,}``" |
| 237 |
msgstr "1 eller flera förekomster av uttrycket. Samma som ``{1,}``" |
| 238 |
|
| 239 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 240 |
msgid "``*``" |
| 241 |
msgstr "``*``" |
| 242 |
|
| 243 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 244 |
msgid "0, 1 or more occurrences of the expression. Same as ``{0,}``" |
| 245 |
msgstr "0, 1 eller flera förekomster av uttrycket. Samma som ``{0,}``" |
| 246 |
|
| 247 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 248 |
msgid "``{n}``" |
| 249 |
msgstr "``{n}``" |
| 250 |
|
| 251 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 252 |
msgid "Exactly n occurrences of the expression" |
| 253 |
msgstr "Exakt n förekomster av uttrycket" |
| 254 |
|
| 255 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 256 |
msgid "``{min,max}``" |
| 257 |
msgstr "``{min,max}``" |
| 258 |
|
| 259 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 260 |
msgid "Number of occurrences between the minimum and maximum values included" |
| 261 |
msgstr "" |
| 262 |
"Antal förekomster mellan minimi- och maximivärdet, inklusive båda gränserna" |
| 263 |
|
| 264 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 265 |
msgid "``{min,}``" |
| 266 |
msgstr "``{min,}``" |
| 267 |
|
| 268 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 269 |
msgid "Number of occurrences between the minimum value included and infinity" |
| 270 |
msgstr "Minst det angivna antalet förekomster, utan övre gräns" |
| 271 |
|
| 272 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 273 |
msgid "``{,max}``" |
| 274 |
msgstr "``{,max}``" |
| 275 |
|
| 276 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 277 |
msgid "Number of occurrences between 0 and the maximum value included" |
| 278 |
msgstr "Antal förekomster mellan 0 och maximivärdet, inklusive båda gränserna" |
| 279 |
|
| 280 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:97 |
| 281 |
msgid "Greed" |
| 282 |
msgstr "Girighet" |
| 283 |
|
| 284 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:99 |
| 285 |
msgid "" |
| 286 |
"By default, with quantifiers, the regular expression engine is greedy: it " |
| 287 |
"extends the selection as much as possible. This often causes surprises, at " |
| 288 |
"first. ``?`` follows a quantifier to make it lazy. Avoid putting two in the " |
| 289 |
"same expression, the result can be unpredictable." |
| 290 |
msgstr "" |
| 291 |
"Motorn för reguljära uttryck är som standard girig när kvantifierare " |
| 292 |
"används: den utökar matchningen så långt som möjligt. Detta leder ofta till " |
| 293 |
"överraskningar i början. Sätt ``?`` efter en kvantifierare för att göra den " |
| 294 |
"lat. Undvik att använda två sådana i samma uttryck, eftersom resultatet kan " |
| 295 |
"vara oförutsägbart." |
| 296 |
|
| 297 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:104 |
| 298 |
msgid "" |
| 299 |
"Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it " |
| 300 |
"exponentially increases processing time." |
| 301 |
msgstr "" |
| 302 |
"Se upp med nästlade kvantifierare, till exempel mönstret ``(a*)*``, eftersom" |
| 303 |
" de kan öka bearbetningstiden exponentiellt." |
| 304 |
|
| 305 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:108 |
| 306 |
msgid "Alternation" |
| 307 |
msgstr "Alternering" |
| 308 |
|
| 309 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:110 |
| 310 |
msgid "" |
| 311 |
"The ``|`` character in a regular expression is a logical ``OR``. It means " |
| 312 |
"that either the preceding or the following expression can match." |
| 313 |
msgstr "" |
| 314 |
"Tecknet ``|`` i ett reguljärt uttryck är ett logiskt ``OR``. Det betyder att" |
| 315 |
" antingen föregående eller följande uttryck kan matcha." |
| 316 |
|
| 317 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:114 |
| 318 |
msgid "Exclusion" |
| 319 |
msgstr "Uteslutning" |
| 320 |
|
| 321 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:116 |
| 322 |
msgid "Method 1" |
| 323 |
msgstr "Metod 1" |
| 324 |
|
| 325 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:118 |
| 326 |
msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``" |
| 327 |
msgstr "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``" |
| 328 |
|
| 329 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:120 |
| 330 |
msgid "Example:" |
| 331 |
msgstr "Exempel:" |
| 332 |
|
| 333 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:122 |
| 334 |
msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``" |
| 335 |
msgstr "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``" |
| 336 |
|
| 337 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:124 |
| 338 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:132 |
| 339 |
msgid "" |
| 340 |
"selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in " |
| 341 |
"\"Blabla\"." |
| 342 |
msgstr "" |
| 343 |
"väljer Blabla, i strängarna Blabla eller \"Blabla eller Blabla\", men inte i" |
| 344 |
" \"Blabla\"." |
| 345 |
|
| 346 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:126 |
| 347 |
msgid "Method 2" |
| 348 |
msgstr "Metod 2" |
| 349 |
|
| 350 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:128 |
| 351 |
msgid "``pattern_to_exclude\\K|(pattern_to_select)``" |
| 352 |
msgstr "``pattern_to_exclude\\K|(pattern_to_select)``" |
| 353 |
|
| 354 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:130 |
| 355 |
msgid "``\"Blabla\"\\K|(Blabla)``" |
| 356 |
msgstr "``\"Blabla\"\\K|(Blabla)``" |
| 357 |
|
| 358 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:135 |
| 359 |
msgid "Anchors" |
| 360 |
msgstr "Ankare" |
| 361 |
|
| 362 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:137 |
| 363 |
msgid "" |
| 364 |
"An anchor is a way to match a logical location in a string, rather than a " |
| 365 |
"character. The most useful anchors for text processing are:" |
| 366 |
msgstr "" |
| 367 |
"Ett ankare är ett sätt att matcha en logisk position i en sträng i stället " |
| 368 |
"för ett tecken. De användbaraste ankarna för textbehandling är:" |
| 369 |
|
| 370 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:140 |
| 371 |
msgid "``\\b``" |
| 372 |
msgstr "``\\b``" |
| 373 |
|
| 374 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:141 |
| 375 |
msgid "" |
| 376 |
"Designates a word boundary, i.e. a transition from space to non-space " |
| 377 |
"character. For example, you can use ``\\bsurd`` to match ``the surd`` but " |
| 378 |
"not ``absurd``." |
| 379 |
msgstr "" |
| 380 |
"Betecknar en ordgräns, dvs. en övergång från blanktecken till icke-" |
| 381 |
"blanktecken. Du kan till exempel använda ``\\bsurd`` för att matcha ``the " |
| 382 |
"surd`` men inte ``absurd``." |
| 383 |
|
| 384 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:145 |
| 385 |
msgid "``^``" |
| 386 |
msgstr "``^``" |
| 387 |
|
| 388 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:146 |
| 389 |
msgid "Matches the start of a line (in multi-line mode, which is the default)" |
| 390 |
msgstr "Matchar början av en rad (i flerradsläge, vilket är standard)" |
| 391 |
|
| 392 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:149 |
| 393 |
msgid "``$``" |
| 394 |
msgstr "``$``" |
| 395 |
|
| 396 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:150 |
| 397 |
msgid "Matches the end of a line (in multi-line mode, which is the default)" |
| 398 |
msgstr "Matchar slutet av en rad (i flerradsläge, vilket är standard)" |
| 399 |
|
| 400 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:152 |
| 401 |
msgid "``\\K``" |
| 402 |
msgstr "``\\K``" |
| 403 |
|
| 404 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:153 |
| 405 |
msgid "" |
| 406 |
"Resets the start position of the selection to its position in the pattern. " |
| 407 |
"Some regexp engines (but not calibre) do not allow lookbehind of variable " |
| 408 |
"length, especially with quantifiers. When you can use ``\\K`` with these " |
| 409 |
"engines, it also allows you to get rid of this limit by writing the " |
| 410 |
"equivalent of a positive lookbehind of variable length." |
| 411 |
msgstr "" |
| 412 |
"Återställer matchningens startposition till den aktuella positionen i " |
| 413 |
"mönstret. Vissa regexp-motorer (men inte calibres) tillåter inte lookbehind " |
| 414 |
"av varierande längd, särskilt med kvantifierare. Om dessa motorer stöder " |
| 415 |
"``\\K`` kan du kringgå begränsningen genom att skriva motsvarigheten till en" |
| 416 |
" positiv lookbehind av varierande längd." |
| 417 |
|
| 418 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:160 |
| 419 |
msgid "Groups" |
| 420 |
msgstr "Grupper" |
| 421 |
|
| 422 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:162 |
| 423 |
msgid "``(expression)``" |
| 424 |
msgstr "``(expression)``" |
| 425 |
|
| 426 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:163 |
| 427 |
msgid "" |
| 428 |
"Capturing group, which stores the selection and can be recalled later in the" |
| 429 |
" *search* or *replace* patterns with ``\\n``, where ``n`` is the sequence " |
| 430 |
"number of the capturing group (starting at 1 in reading order)" |
| 431 |
msgstr "" |
| 432 |
"Fångstgrupp som lagrar matchningen. Den kan återanvändas senare i *sök-* " |
| 433 |
"eller *ersättningsmönstret* med ``\\n``, där ``n`` är fångstgruppens " |
| 434 |
"ordningsnummer (från 1 i läsordning)." |
| 435 |
|
| 436 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:167 |
| 437 |
msgid "``(?:expression)``" |
| 438 |
msgstr "``(?:expression)``" |
| 439 |
|
| 440 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:168 |
| 441 |
msgid "Group that does not capture the selection" |
| 442 |
msgstr "Grupp som inte fångar markeringen" |
| 443 |
|
| 444 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:170 |
| 445 |
msgid "``(?>expression)``" |
| 446 |
msgstr "``(?>expression)``" |
| 447 |
|
| 448 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:171 |
| 449 |
msgid "" |
| 450 |
"Atomic Group: As soon as the expression is satisfied, the regexp engine " |
| 451 |
"passes, and if the rest of the pattern fails, it will not backtrack to try " |
| 452 |
"other combinations with the expression. Atomic groups do not capture." |
| 453 |
msgstr "" |
| 454 |
"Atomgrupp: Så snart uttrycket har matchats fortsätter motorn. Om resten av " |
| 455 |
"mönstret sedan misslyckas går den inte tillbaka in i atomgruppen för att " |
| 456 |
"prova andra kombinationer. Atomgrupper fångar inte." |
| 457 |
|
| 458 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:176 |
| 459 |
msgid "``(?|expression)``" |
| 460 |
msgstr "``(?|expression)``" |
| 461 |
|
| 462 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:177 |
| 463 |
msgid "" |
| 464 |
"Branch reset group: the branches of the alternations included in the " |
| 465 |
"expression share the same group numbers" |
| 466 |
msgstr "" |
| 467 |
"Grenåterställningsgrupp: alternativen i uttrycket delar samma gruppnummer" |
| 468 |
|
| 469 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:180 |
| 470 |
msgid "``(?<name>expression)``" |
| 471 |
msgstr "``(?<name>expression)``" |
| 472 |
|
| 473 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:181 |
| 474 |
msgid "" |
| 475 |
"Group named “name”. The selection can be recalled later in the *search* " |
| 476 |
"pattern by ``(?P=name)`` and in the *replace* by ``\\g<name>``. Two " |
| 477 |
"different groups can use the same name." |
| 478 |
msgstr "" |
| 479 |
"En grupp med namnet ”name”. Matchningen kan återanvändas senare i " |
| 480 |
"*sökmönstret* med ``(?P=name)`` och i *ersättningsmönstret* med " |
| 481 |
"``\\g<name>``. Två olika grupper kan använda samma namn." |
| 482 |
|
| 483 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:187 |
| 484 |
msgid "Lookarounds" |
| 485 |
msgstr "Lookarounds" |
| 486 |
|
| 487 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 488 |
msgid "**Lookaround**" |
| 489 |
msgstr "**Lookaround**" |
| 490 |
|
| 491 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 492 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241 |
| 493 |
msgid "**Meaning**" |
| 494 |
msgstr "**Betydelse**" |
| 495 |
|
| 496 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 497 |
msgid "``?=``" |
| 498 |
msgstr "``?=``" |
| 499 |
|
| 500 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 501 |
msgid "Positive lookahead (to be placed after the selection)" |
| 502 |
msgstr "Positiv lookahead (placeras efter markeringen)" |
| 503 |
|
| 504 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 505 |
msgid "``?!``" |
| 506 |
msgstr "``?!``" |
| 507 |
|
| 508 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 509 |
msgid "Negative lookahead (to be placed after the selection)" |
| 510 |
msgstr "Negativ lookahead (placeras efter markeringen)" |
| 511 |
|
| 512 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 513 |
msgid "``?<=``" |
| 514 |
msgstr "``?<=``" |
| 515 |
|
| 516 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 517 |
msgid "Positive lookbehind (to be placed before the selection)" |
| 518 |
msgstr "Positiv lookbehind (placeras före markeringen)" |
| 519 |
|
| 520 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 521 |
msgid "``?<!``" |
| 522 |
msgstr "``?<!``" |
| 523 |
|
| 524 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 525 |
msgid "Negative lookbehind (to be placed before the selection)" |
| 526 |
msgstr "Negativ lookbehind (placeras före markeringen)" |
| 527 |
|
| 528 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:206 |
| 529 |
msgid "" |
| 530 |
"Lookaheads and lookbehinds do not consume characters, they are zero length " |
| 531 |
"and do not capture. They are atomic groups: as soon as the assertion is " |
| 532 |
"satisfied, the regexp engine passes, and if the rest of the pattern fails, " |
| 533 |
"it will not backtrack inside the lookaround to try other combinations." |
| 534 |
msgstr "" |
| 535 |
"Framåt- och bakåtblickande villkor förbrukar inga tecken, har längden noll " |
| 536 |
"och fångar inte. De är atomgrupper: så snart villkoret är uppfyllt " |
| 537 |
"fortsätter motorn, och om resten av mönstret misslyckas söker den inte bakåt" |
| 538 |
" inne i villkoret efter andra kombinationer." |
| 539 |
|
| 540 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:211 |
| 541 |
msgid "" |
| 542 |
"When looking for multiple matches in a string, at the starting position of " |
| 543 |
"each match attempt, a lookbehind can inspect the characters before the " |
| 544 |
"current position. Therefore, on the string 123, the pattern ``(?<=\\d)\\d`` " |
| 545 |
"(a digit preceded by a digit) should, in theory, select 2 and 3. On the " |
| 546 |
"other hand, ``\\d\\K\\d`` can only select 2, because the starting position " |
| 547 |
"after the first selection is immediately before 3, and there are not enough " |
| 548 |
"digits for a second match. Similarly, ``\\d(\\d)`` only captures 2. In " |
| 549 |
"calibre's regexp engine practice, the positive lookbehind behaves in the " |
| 550 |
"same way, and selects only 2, contrary to theory." |
| 551 |
msgstr "" |
| 552 |
"När du söker efter flera matchningar i en sträng kan en lookbehind vid varje" |
| 553 |
" matchningsförsök undersöka tecknen före den aktuella startpositionen. I " |
| 554 |
"strängen 123 bör därför mönstret ``(?<=\\d)\\d`` (en siffra som föregås av " |
| 555 |
"en siffra) i teorin matcha 2 och 3. Däremot kan ``\\d\\K\\d`` bara matcha 2," |
| 556 |
" eftersom startpositionen efter den första matchningen är omedelbart före 3," |
| 557 |
" och det inte finns tillräckligt med siffror för en andra matchning. På " |
| 558 |
"samma sätt fångar ``\\d(\\d)`` bara 2. I praktiken beter sig positiv " |
| 559 |
"lookbehind på samma sätt i calibres regexp-motor och matchar endast 2, i " |
| 560 |
"motsats till teorin." |
| 561 |
|
| 562 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:221 |
| 563 |
msgid "" |
| 564 |
"Groups can be placed inside lookarounds, but capture is rarely useful. " |
| 565 |
"Nevertheless, if it is useful, it will be necessary to be very careful in " |
| 566 |
"the use of a quantifier in a lookbehind: the greed associated with the " |
| 567 |
"absence of backtracking can give a surprising capture. For this reason, use " |
| 568 |
"``\\K`` rather than a positive lookbehind when you have a quantifier (or " |
| 569 |
"worse, several) in a capturing group of the positive lookbehind." |
| 570 |
msgstr "" |
| 571 |
"Grupper kan placeras i lookaround-uttryck, men fångst är sällan användbar. " |
| 572 |
"Om det ändå behövs måste du vara mycket försiktig med kvantifierare i ett " |
| 573 |
"lookbehind-uttryck: girigheten i kombination med avsaknaden av backtracking " |
| 574 |
"kan ge oväntade fångster. Använd därför ``\\K`` i stället för en positiv " |
| 575 |
"lookbehind när en fångstgrupp i lookbehind-uttrycket innehåller en eller " |
| 576 |
"flera kvantifierare." |
| 577 |
|
| 578 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:228 |
| 579 |
msgid "Example of negative lookahead:" |
| 580 |
msgstr "Exempel på negativ lookahead:" |
| 581 |
|
| 582 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:230 |
| 583 |
msgid "``(?![^<>{}]*[>}])``" |
| 584 |
msgstr "``(?![^<>{}]*[>}])``" |
| 585 |
|
| 586 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:232 |
| 587 |
msgid "" |
| 588 |
"Placed at the end of the pattern prevents selecting within a tag or a style " |
| 589 |
"embedded in the file." |
| 590 |
msgstr "" |
| 591 |
"Placering i slutet av mönstret förhindrar markering inom en tagg eller ett " |
| 592 |
"format som är inbäddat i filen." |
| 593 |
|
| 594 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:234 |
| 595 |
msgid "" |
| 596 |
"Whenever possible, it is always better to \"anchor\" the lookarounds, to " |
| 597 |
"reduce the number of steps necessary to obtain the result." |
| 598 |
msgstr "" |
| 599 |
"När det är möjligt är det alltid bättre att \"förankra\" lookarounds, för " |
| 600 |
"att minska antalet steg som krävs för att få resultatet." |
| 601 |
|
| 602 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:238 |
| 603 |
msgid "Recursion" |
| 604 |
msgstr "Rekursion" |
| 605 |
|
| 606 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 607 |
msgid "``(?R)``" |
| 608 |
msgstr "``(?R)``" |
| 609 |
|
| 610 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 611 |
msgid "Recursion of the entire pattern" |
| 612 |
msgstr "Rekursion av hela mönstret" |
| 613 |
|
| 614 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 615 |
msgid "``(?1)``" |
| 616 |
msgstr "``(?1)``" |
| 617 |
|
| 618 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 619 |
msgid "" |
| 620 |
"Recursion of the only pattern of the numbered capturing group, here group 1" |
| 621 |
msgstr "" |
| 622 |
"Rekursion av enbart mönstret i den numrerade fångstgruppen, här grupp 1" |
| 623 |
|
| 624 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:251 |
| 625 |
msgid "" |
| 626 |
"Recursion is calling oneself. This is useful for balanced queries, such as " |
| 627 |
"quoted strings, which can contain embedded quoted strings. Thus, if during " |
| 628 |
"the processing of a string between double quotation marks, we encounter the " |
| 629 |
"beginning of a new string between double quotation marks, well we know how " |
| 630 |
"to do, and we call ourselves. Then we have a pattern like::" |
| 631 |
msgstr "" |
| 632 |
"Rekursion innebär att något anropar sig självt. Detta är användbart för att " |
| 633 |
"söka efter balanserade strukturer, till exempel strängar inom citattecken " |
| 634 |
"som kan innehålla andra strängar inom citattecken. Om vi under bearbetningen" |
| 635 |
" av en sträng mellan dubbla citattecken stöter på början av en ny sådan " |
| 636 |
"sträng, kan vi anropa samma mönster igen. Då får vi ett mönster som::" |
| 637 |
|
| 638 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:259 |
| 639 |
msgid "" |
| 640 |
"To select a string between double quotation marks without stopping on an " |
| 641 |
"embedded string::" |
| 642 |
msgstr "" |
| 643 |
"För att välja en sträng mellan dubbla citattecken utan att stanna på en " |
| 644 |
"inbäddad sträng::" |
| 645 |
|
| 646 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:263 |
| 647 |
msgid "" |
| 648 |
"This template can also be used to modify pairs of tags that can be embedded," |
| 649 |
" such as ``<div>`` tags." |
| 650 |
msgstr "" |
| 651 |
"Denna mall kan också användas för att ändra taggpar som kan nästlas, till " |
| 652 |
"exempel ``<div>``-taggar." |
| 653 |
|
| 654 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:268 |
| 655 |
msgid "Special characters" |
| 656 |
msgstr "Specialtecken" |
| 657 |
|
| 658 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271 |
| 659 |
msgid "**Character**" |
| 660 |
msgstr "**Tecken**" |
| 661 |
|
| 662 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 663 |
msgid "``\\t``" |
| 664 |
msgstr "``\\t``" |
| 665 |
|
| 666 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 667 |
msgid "tabulation" |
| 668 |
msgstr "tabulering" |
| 669 |
|
| 670 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 671 |
msgid "``\\n``" |
| 672 |
msgstr "``\\n``" |
| 673 |
|
| 674 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 675 |
msgid "line break" |
| 676 |
msgstr "radbrytning" |
| 677 |
|
| 678 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 679 |
msgid "``\\x20``" |
| 680 |
msgstr "``\\x20``" |
| 681 |
|
| 682 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 683 |
msgid "(breakable) space" |
| 684 |
msgstr "(brytbart) mellanslag" |
| 685 |
|
| 686 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 687 |
msgid "``\\xa0``" |
| 688 |
msgstr "``\\xa0``" |
| 689 |
|
| 690 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 691 |
msgid "no-break space" |
| 692 |
msgstr "fast mellanslag" |
| 693 |
|
| 694 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:288 |
| 695 |
msgid "Meta-characters" |
| 696 |
msgstr "Metatecken" |
| 697 |
|
| 698 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:290 |
| 699 |
msgid "" |
| 700 |
"Meta-characters are those that have a special meaning for the regexp engine." |
| 701 |
" Of these, twelve must be preceded by an escape character, the backslash " |
| 702 |
"(``\\``), to lose their special meaning and become a regular character " |
| 703 |
"again::" |
| 704 |
msgstr "" |
| 705 |
"Metatecken har en särskild betydelse för regexp-motorn. Av dessa måste tolv " |
| 706 |
"föregås av ett escape-tecken, bakstrecket (``\\``), för att förlora sin " |
| 707 |
"särskilda betydelse och bli vanliga tecken igen::" |
| 708 |
|
| 709 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:296 |
| 710 |
msgid "" |
| 711 |
"Seven other meta-characters do not need to be preceded by a backslash (but " |
| 712 |
"can be without any other consequence)::" |
| 713 |
msgstr "" |
| 714 |
"Sju andra metatecken behöver inte föregås av ett bakstreck, men kan göra det" |
| 715 |
" utan att betydelsen ändras::" |
| 716 |
|
| 717 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:302 |
| 718 |
msgid "" |
| 719 |
"Special characters lose their status if they are used inside a class " |
| 720 |
"(between brackets ``[]``). The closing bracket and the dash have a special " |
| 721 |
"status in a class. Outside the class, the dash is a simple literal, the " |
| 722 |
"closing bracket remains a meta-character." |
| 723 |
msgstr "" |
| 724 |
"Specialtecken förlorar sin särskilda betydelse om de används i en klass " |
| 725 |
"(mellan hakparenteser ``[]``). Den avslutande hakparentesen och " |
| 726 |
"bindestrecket har en särskild status i en klass. Utanför klassen är " |
| 727 |
"bindestrecket ett vanligt tecken, medan den avslutande hakparentesen förblir" |
| 728 |
" ett metatecken." |
| 729 |
|
| 730 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:307 |
| 731 |
msgid "" |
| 732 |
"The slash (/) and the number sign (or hash character) (#) are not meta-" |
| 733 |
"characters, they don’t need to be escaped." |
| 734 |
msgstr "" |
| 735 |
"Snedstreck (/) och nummertecken (eller hashtecken) (#) är inte metatecken, " |
| 736 |
"de behöver inte föregås av ett escape-tecken." |
| 737 |
|
| 738 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:310 |
| 739 |
msgid "" |
| 740 |
"In some tools, like regex101.com with the Python engine, double quotes have " |
| 741 |
"the special status of separator, and must be escaped, or the options " |
| 742 |
"changed. This is not the case in the editor of calibre." |
| 743 |
msgstr "" |
| 744 |
"I vissa verktyg, som regex101.com med Python-motorn, har dubbla citattecken " |
| 745 |
"den speciella statusen för avskiljare och måste föregås av omvänt " |
| 746 |
"snedstreck, eller alternativen ändras. Detta är inte fallet i redigeraren " |
| 747 |
"för calibre." |
| 748 |
|
| 749 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:315 |
| 750 |
msgid "Modes" |
| 751 |
msgstr "Lägen" |
| 752 |
|
| 753 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:317 |
| 754 |
msgid "``(?s)``" |
| 755 |
msgstr "``(?s)``" |
| 756 |
|
| 757 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:318 |
| 758 |
msgid "Causes the dot (``.``) to match newline characters as well" |
| 759 |
msgstr "Gör att punkten (``.``) även matchar nyradstecken" |
| 760 |
|
| 761 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:320 |
| 762 |
msgid "``(?m)``" |
| 763 |
msgstr "``(?m)``" |
| 764 |
|
| 765 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:321 |
| 766 |
msgid "" |
| 767 |
"Makes the ``^`` and ``$`` anchors match the start and end of lines instead " |
| 768 |
"of the start and end of the entire string." |
| 769 |
msgstr "" |
| 770 |
"Gör så att ankarna ``^`` och ``$`` matchar början och slutet av rader i " |
| 771 |
"stället för början och slutet av hela strängen." |