Debian Codegraph @

doc/locale/en/LC_MESSAGES/reference/regular_expression.po

raw
1 # -*- po -*-
2 # English translations for Groonga package.
3 # Copyright (C) 2009-2026 Groonga Project
4 # This file is distributed under the same license as the Groonga package.
5 # Automatically generated, 2026.
6 #
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: Groonga 16.0.5\n"
10 "Report-Msgid-Bugs-To: \n"
11 "PO-Revision-Date: 2026-05-22 06:03+0000\n"
12 "Last-Translator: Automatically generated\n"
13 "Language-Team: none\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: en\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 msgid "Regular expression"
21 msgstr "Regular expression"
22
23 msgid "Summary"
24 msgstr "Summary"
25
26 msgid "Regular expression support is an experimental feature."
27 msgstr "Regular expression support is an experimental feature."
28
29 msgid "Groonga supports pattern match by regular expression. Regular expression is widely used format to describe a pattern. Regular expression is useful to represent complex pattern."
30 msgstr "Groonga supports pattern match by regular expression. Regular expression is widely used format to describe a pattern. Regular expression is useful to represent complex pattern."
31
32 msgid "In most cases, pattern match by regular expression is evaluated as sequential search. It'll be slow for many records and many texts."
33 msgstr "In most cases, pattern match by regular expression is evaluated as sequential search. It'll be slow for many records and many texts."
34
35 msgid "In some cases, pattern match by regular expression can be evaluated by index. It's very fast rather than sequential search. Patterns that can be evaluated by index are described later."
36 msgstr "In some cases, pattern match by regular expression can be evaluated by index. It's very fast rather than sequential search. Patterns that can be evaluated by index are described later."
37
38 msgid "Groonga normalizes match target text by :ref:`normalizer-auto` normalizer when Groonga doesn't use index for regular expression search. It means that regular expression that has upper case such as ``Groonga`` never match. Because :ref:`normalizer-auto` normalizer normalizes all alphabets to lower case. ``groonga`` matches to both ``Groonga`` and ``groonga``."
39 msgstr "Groonga normalizes match target text by :ref:`normalizer-auto` normalizer when Groonga doesn't use index for regular expression search. It means that regular expression that has upper case such as ``Groonga`` never match. Because :ref:`normalizer-auto` normalizer normalizes all alphabets to lower case. ``groonga`` matches to both ``Groonga`` and ``groonga``."
40
41 msgid "Why is match target text normalized? It's for increasing index search-able patterns. If Groonga doesn't normalize match target text, you need to write complex regular expression such as ``[Dd][Ii][Ss][Kk]`` and ``(?i)disk`` for case-insensitive match. Groonga can't use index against complex regular expression."
42 msgstr "Why is match target text normalized? It's for increasing index search-able patterns. If Groonga doesn't normalize match target text, you need to write complex regular expression such as ``[Dd][Ii][Ss][Kk]`` and ``(?i)disk`` for case-insensitive match. Groonga can't use index against complex regular expression."
43
44 msgid "If you write ``disk`` regular expression for case-insensitive match, Groonga can search the pattern with index. It's fast."
45 msgstr "If you write ``disk`` regular expression for case-insensitive match, Groonga can search the pattern with index. It's fast."
46
47 msgid "By full text search normally, Groonga normalize search keywords using the normalizer specified in a lexicon. By using regular expression search, Groonga doesn't normalize search keywords. Because the regular expression has specified meaning in uppercase and lowercase."
48 msgstr "By full text search normally, Groonga normalize search keywords using the normalizer specified in a lexicon. By using regular expression search, Groonga doesn't normalize search keywords. Because the regular expression has specified meaning in uppercase and lowercase."
49
50 msgid "So, if you regular expression search that doesn't use the index, we suggest that use :doc:`/reference/commands/normalize` command to normalize search keywords before a search. By using :doc:`/reference/commands/normalize` command, you don't have to need to think about how to normalize search keywords."
51 msgstr "So, if you regular expression search that doesn't use the index, we suggest that use :doc:`/reference/commands/normalize` command to normalize search keywords before a search. By using :doc:`/reference/commands/normalize` command, you don't have to need to think about how to normalize search keywords."
52
53 msgid "You may feel the behavior is strange. But fast search based on this behavior will help you."
54 msgstr "You may feel the behavior is strange. But fast search based on this behavior will help you."
55
56 msgid "There are many regular expression syntaxes. Groonga uses the same syntax in Ruby. Because Groonga uses the same regular expression engine as Ruby. The regular expression engine is `Onigmo <https://github.com/k-takata/Onigmo/>`_. Characteristic difference with other regular expression syntax is ``^`` and ``$``. The regular expression syntax in Ruby, ``^`` means the beginning of line and ``$`` means the end of line. ``^`` means the beginning of text and ``$`` means the end of text in other most regular expression syntaxes. The regular expression syntax in Ruby uses ``\\A`` for the beginning of text and ``\\z`` for the end of text."
57 msgstr "There are many regular expression syntaxes. Groonga uses the same syntax in Ruby. Because Groonga uses the same regular expression engine as Ruby. The regular expression engine is `Onigmo <https://github.com/k-takata/Onigmo/>`_. Characteristic difference with other regular expression syntax is ``^`` and ``$``. The regular expression syntax in Ruby, ``^`` means the beginning of line and ``$`` means the end of line. ``^`` means the beginning of text and ``$`` means the end of text in other most regular expression syntaxes. The regular expression syntax in Ruby uses ``\\A`` for the beginning of text and ``\\z`` for the end of text."
58
59 msgid "Groonga uses multiline mode since 5.0.6. It means that ``.`` matches on ``\\n``."
60 msgstr "Groonga uses multiline mode since 5.0.6. It means that ``.`` matches on ``\\n``."
61
62 msgid "But it's meaningless. Because ``\\n`` is removed by :ref:`normalizer-auto` normalizer."
63 msgstr "But it's meaningless. Because ``\\n`` is removed by :ref:`normalizer-auto` normalizer."
64
65 msgid "You can use regular expression in :ref:`select-query` and :ref:`select-filter` options of :doc:`/reference/commands/select` command."
66 msgstr "You can use regular expression in :ref:`select-query` and :ref:`select-filter` options of :doc:`/reference/commands/select` command."
67
68 msgid "Usage"
69 msgstr "Usage"
70
71 msgid "Here are a schema definition and sample data to show usage. There is only one table, ``Logs``. ``Logs`` table has only ``message`` column. Log messages are stored into the ``message`` column."
72 msgstr "Here are a schema definition and sample data to show usage. There is only one table, ``Logs``. ``Logs`` table has only ``message`` column. Log messages are stored into the ``message`` column."
73
74 msgid "Execution example::"
75 msgstr "Execution example::"
76
77 msgid "Here is an example that uses regular expression in :ref:`select-query`. You need to use ``${COLUMN}:~${REGULAR_EXPRESSION}`` syntax."
78 msgstr "Here is an example that uses regular expression in :ref:`select-query`. You need to use ``${COLUMN}:~${REGULAR_EXPRESSION}`` syntax."
79
80 msgid "Here is an example that uses regular expression in :ref:`select-filter`. You need to use ``${COLUMN} @~ ${REGULAR_EXPRESSION}`` syntax."
81 msgstr "Here is an example that uses regular expression in :ref:`select-filter`. You need to use ``${COLUMN} @~ ${REGULAR_EXPRESSION}`` syntax."
82
83 msgid "Index"
84 msgstr "Index"
85
86 msgid "Groonga can search records by regular expression with index. It's very fast rather than sequential search."
87 msgstr "Groonga can search records by regular expression with index. It's very fast rather than sequential search."
88
89 msgid "But it doesn't support all regular expression patterns. It supports only the following regular expression patterns. The patterns will be increased in the future."
90 msgstr "But it doesn't support all regular expression patterns. It supports only the following regular expression patterns. The patterns will be increased in the future."
91
92 msgid "Literal only pattern such as ``disk``"
93 msgstr "Literal only pattern such as ``disk``"
94
95 msgid "The begging of text and literal only pattern such as ``\\Adisk``"
96 msgstr "The begging of text and literal only pattern such as ``\\Adisk``"
97
98 msgid "The end of text and literal only pattern such as ``disk\\z``"
99 msgstr "The end of text and literal only pattern such as ``disk\\z``"
100
101 msgid "You need to create an index for fast regular expression search. Here are requirements of index:"
102 msgstr "You need to create an index for fast regular expression search. Here are requirements of index:"
103
104 msgid "Lexicon must be :ref:`table-pat-key` table."
105 msgstr "Lexicon must be :ref:`table-pat-key` table."
106
107 msgid "Lexicon must use :ref:`token-regexp` tokenizer."
108 msgstr "Lexicon must use :ref:`token-regexp` tokenizer."
109
110 msgid "Index column must has ``WITH_POSITION`` flag."
111 msgstr "Index column must has ``WITH_POSITION`` flag."
112
113 msgid "Other configurations such as lexicon's normalizer are optional. You can choose what you like. If you want to use case-insensitive search, use :ref:`normalizer-auto` normalizer."
114 msgstr "Other configurations such as lexicon's normalizer are optional. You can choose what you like. If you want to use case-insensitive search, use :ref:`normalizer-auto` normalizer."
115
116 msgid "Here are recommended index definitions. In general, it's reasonable index definitions."
117 msgstr "Here are recommended index definitions. In general, it's reasonable index definitions."
118
119 msgid "Now, you can use index for regular expression search. The following regular expression can be evaluated by index because it uses only \"the beginning of text\" and \"literal\"."
120 msgstr "Now, you can use index for regular expression search. The following regular expression can be evaluated by index because it uses only \"the beginning of text\" and \"literal\"."
121
122 msgid "Here is an example that uses :ref:`select-filter` instead of :ref:`select-query`. It uses the same regular expression as the previous example."
123 msgstr "Here is an example that uses :ref:`select-filter` instead of :ref:`select-query`. It uses the same regular expression as the previous example."
124
125 msgid "``\\`` escape will confuse you because there are some steps that require escape between you and Groonga. Here are steps that require ``\\`` escape:"
126 msgstr "``\\`` escape will confuse you because there are some steps that require escape between you and Groonga. Here are steps that require ``\\`` escape:"
127
128 msgid "Shell only when you pass Groonga command from command line the following::"
129 msgstr "Shell only when you pass Groonga command from command line the following::"
130
131 msgid "``--filter '\"message @~ \\\"\\\\\\\\Ahost1:\\\"\"'`` is evaluated as the following two arguments by shell:"
132 msgstr "``--filter '\"message @~ \\\"\\\\\\\\Ahost1:\\\"\"'`` is evaluated as the following two arguments by shell:"
133
134 msgid "``--filter``"
135 msgstr "``--filter``"
136
137 msgid "``\"message @~ \\\"\\\\\\\\Ahost1:\\\"\"``"
138 msgstr "``\"message @~ \\\"\\\\\\\\Ahost1:\\\"\"``"
139
140 msgid "Groonga command parser only when you pass Groonga command by command line style (``COMMAND ARG1_VALUE ARG2_VALUE ...``) not HTTP path style (``/d/COMMAND?ARG1_NAME=ARG1_VALUE&ARG2_NAME=ARG3_VALUE``)."
141 msgstr "Groonga command parser only when you pass Groonga command by command line style (``COMMAND ARG1_VALUE ARG2_VALUE ...``) not HTTP path style (``/d/COMMAND?ARG1_NAME=ARG1_VALUE&ARG2_NAME=ARG3_VALUE``)."
142
143 msgid "``\"message @~ \\\"\\\\\\\\Ahost1:\\\"\"`` is evaluated as the following value by Groonga command parser:"
144 msgstr "``\"message @~ \\\"\\\\\\\\Ahost1:\\\"\"`` is evaluated as the following value by Groonga command parser:"
145
146 msgid "``message @~ \"\\\\Ahost1:\"``"
147 msgstr "``message @~ \"\\\\Ahost1:\"``"
148
149 msgid ":doc:`/reference/grn_expr` parser. ``\\`` escape is required in both :doc:`/reference/grn_expr/query_syntax` and :doc:`/reference/grn_expr/script_syntax`."
150 msgstr ":doc:`/reference/grn_expr` parser. ``\\`` escape is required in both :doc:`/reference/grn_expr/query_syntax` and :doc:`/reference/grn_expr/script_syntax`."
151
152 msgid "``\"\\\\Ahost1:\"`` string literal in script syntax is evaluated as the following value:"
153 msgstr "``\"\\\\Ahost1:\"`` string literal in script syntax is evaluated as the following value:"
154
155 msgid "``\\Ahost1``"
156 msgstr "``\\Ahost1``"
157
158 msgid "The value is evaluated as regular expression."
159 msgstr "The value is evaluated as regular expression."
160
161 msgid "Syntax"
162 msgstr "Syntax"
163
164 msgid "This section describes about only commonly used syntaxes. See `Onigmo syntax documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE>`_ for other syntaxes and details."
165 msgstr "This section describes about only commonly used syntaxes. See `Onigmo syntax documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE>`_ for other syntaxes and details."
166
167 msgid "Escape"
168 msgstr "Escape"
169
170 msgid "In regular expression, there are the following special characters:"
171 msgstr "In regular expression, there are the following special characters:"
172
173 msgid "``\\``"
174 msgstr "``\\``"
175
176 msgid "``|``"
177 msgstr "``|``"
178
179 msgid "``(``"
180 msgstr "``(``"
181
182 msgid "``)``"
183 msgstr "``)``"
184
185 msgid "``[``"
186 msgstr "``[``"
187
188 msgid "``]``"
189 msgstr "``]``"
190
191 msgid "``.``"
192 msgstr "``.``"
193
194 msgid "``*``"
195 msgstr "``*``"
196
197 msgid "``+``"
198 msgstr "``+``"
199
200 msgid "``?``"
201 msgstr "``?``"
202
203 msgid "``{``"
204 msgstr "``{``"
205
206 msgid "``}``"
207 msgstr "``}``"
208
209 msgid "``^``"
210 msgstr "``^``"
211
212 msgid "``$``"
213 msgstr "``$``"
214
215 msgid "If you want to write pattern that matches these special character as is, you need to escape them."
216 msgstr "If you want to write pattern that matches these special character as is, you need to escape them."
217
218 msgid "You can escape them by putting ``\\`` before special character. Here are regular expressions that match special character itself:"
219 msgstr "You can escape them by putting ``\\`` before special character. Here are regular expressions that match special character itself:"
220
221 msgid "``\\\\``"
222 msgstr "``\\\\``"
223
224 msgid "``\\|``"
225 msgstr "``\\|``"
226
227 msgid "``\\(``"
228 msgstr "``\\(``"
229
230 msgid "``\\)``"
231 msgstr "``\\)``"
232
233 msgid "``\\[``"
234 msgstr "``\\[``"
235
236 msgid "``\\]``"
237 msgstr "``\\]``"
238
239 msgid "``\\.``"
240 msgstr "``\\.``"
241
242 msgid "``\\*``"
243 msgstr "``\\*``"
244
245 msgid "``\\+``"
246 msgstr "``\\+``"
247
248 msgid "``\\?``"
249 msgstr "``\\?``"
250
251 msgid "``\\{``"
252 msgstr "``\\{``"
253
254 msgid "``\\}``"
255 msgstr "``\\}``"
256
257 msgid "``\\^``"
258 msgstr "``\\^``"
259
260 msgid "``\\$``"
261 msgstr "``\\$``"
262
263 msgid "If your regular expression doesn't work as you expected, confirm that some special characters are used without escaping."
264 msgstr "If your regular expression doesn't work as you expected, confirm that some special characters are used without escaping."
265
266 msgid "Choice"
267 msgstr "Choice"
268
269 msgid "Choice syntax is ``A|B``. The regular expression matches when either ``A`` pattern or ``B`` pattern is matched."
270 msgstr "Choice syntax is ``A|B``. The regular expression matches when either ``A`` pattern or ``B`` pattern is matched."
271
272 msgid "Regular expression that uses this syntax can't be evaluated by index."
273 msgstr "Regular expression that uses this syntax can't be evaluated by index."
274
275 msgid "Group"
276 msgstr "Group"
277
278 msgid "Group syntax is ``(...)``. Group provides the following features:"
279 msgstr "Group syntax is ``(...)``. Group provides the following features:"
280
281 msgid "Back reference"
282 msgstr "Back reference"
283
284 msgid "Scope reducing"
285 msgstr "Scope reducing"
286
287 msgid "You can refer matched groups by ``\\n`` (``n`` is the group number) syntax. For example, ``e(r)\\1o\\1`` matches ``error``. Because ``\\1`` is replaced with match result (``r``) of the first group ``(r)``."
288 msgstr "You can refer matched groups by ``\\n`` (``n`` is the group number) syntax. For example, ``e(r)\\1o\\1`` matches ``error``. Because ``\\1`` is replaced with match result (``r``) of the first group ``(r)``."
289
290 msgid "You can also use more powerful back reference features. See `\"8. Back reference\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L302>`_ for details."
291 msgstr "You can also use more powerful back reference features. See `\"8. Back reference\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L302>`_ for details."
292
293 msgid "Group syntax reduces scope. For example, ``\\[(warning|info)\\]`` reduces choice syntax scope. The regular expression matches ``[warning]`` and ``[info]``."
294 msgstr "Group syntax reduces scope. For example, ``\\[(warning|info)\\]`` reduces choice syntax scope. The regular expression matches ``[warning]`` and ``[info]``."
295
296 msgid "You can also use more powerful group related features. See `\"7. Extended groups\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L225>`_ for details."
297 msgstr "You can also use more powerful group related features. See `\"7. Extended groups\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L225>`_ for details."
298
299 msgid "Character class"
300 msgstr "Character class"
301
302 msgid "Character class syntax is ``[...]``. Character class is useful to specify multiple characters to be matched."
303 msgstr "Character class syntax is ``[...]``. Character class is useful to specify multiple characters to be matched."
304
305 msgid "For example, ``[12]`` matches ``1`` or ``2``."
306 msgstr "For example, ``[12]`` matches ``1`` or ``2``."
307
308 msgid "You can specify characters by range. For example, ``[0-9]`` matches one digit."
309 msgstr "You can specify characters by range. For example, ``[0-9]`` matches one digit."
310
311 msgid "You can also use more powerful character class related features. See `\"6. Character class\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L164>`_ for details."
312 msgstr "You can also use more powerful character class related features. See `\"6. Character class\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L164>`_ for details."
313
314 msgid "Anchor"
315 msgstr "Anchor"
316
317 msgid "There are the following commonly used anchor syntaxes. Some anchors can be evaluated by index."
318 msgstr "There are the following commonly used anchor syntaxes. Some anchors can be evaluated by index."
319
320 msgid "Description"
321 msgstr "Description"
322
323 msgid "Index ready"
324 msgstr "Index ready"
325
326 msgid "The beginning of line"
327 msgstr "The beginning of line"
328
329 msgid "\\-"
330 msgstr "\\-"
331
332 msgid "The end of line"
333 msgstr "The end of line"
334
335 msgid "``\\A``"
336 msgstr "``\\A``"
337
338 msgid "The beginning of text"
339 msgstr "The beginning of text"
340
341 msgid "✓"
342 msgstr "✓"
343
344 msgid "``\\z``"
345 msgstr "``\\z``"
346
347 msgid "The end of text"
348 msgstr "The end of text"
349
350 msgid "Here is an example that uses ``\\z``."
351 msgstr "Here is an example that uses ``\\z``."
352
353 msgid "You can also use more anchors. See `\"5. Anchors\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L152>`_ for details."
354 msgstr "You can also use more anchors. See `\"5. Anchors\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L152>`_ for details."
355
356 msgid "Regular expression that uses this syntax except ``\\A`` and ``\\z`` can't be evaluated by index."
357 msgstr "Regular expression that uses this syntax except ``\\A`` and ``\\z`` can't be evaluated by index."
358
359 msgid "Quantifier"
360 msgstr "Quantifier"
361
362 msgid "There are the following commonly used quantifier syntaxes."
363 msgstr "There are the following commonly used quantifier syntaxes."
364
365 msgid "0 or 1 time"
366 msgstr "0 or 1 time"
367
368 msgid "0 or more times"
369 msgstr "0 or more times"
370
371 msgid "1 or more times"
372 msgstr "1 or more times"
373
374 msgid "For example, ``er+or`` matches ``error``, ``errror`` and so on."
375 msgstr "For example, ``er+or`` matches ``error``, ``errror`` and so on."
376
377 msgid "You can also use more quantifiers. See `\"4. Quantifier\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L119>`_ for details."
378 msgstr "You can also use more quantifiers. See `\"4. Quantifier\" section in Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE#L119>`_ for details."
379
380 msgid "Others"
381 msgstr "Others"
382
383 msgid "There are more syntaxes. If you're interested in them, see `Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE>`_ for details. You may be interested in \"character type\" and \"character\" syntaxes."
384 msgstr "There are more syntaxes. If you're interested in them, see `Onigmo documentation <https://github.com/k-takata/Onigmo/blob/master/doc/RE>`_ for details. You may be interested in \"character type\" and \"character\" syntaxes."