1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
|
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<meta>
<topic id="textshared0102100001xml" indexer="include" status="PUBLISH">
<title xml-lang="en-US" id="tit">List of Regular Expressions</title>
<filename>/text/shared/01/02100001.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3146765">
<bookmark_value>regular expressions; list of</bookmark_value>
<bookmark_value>regular expressions; new line</bookmark_value>
<bookmark_value>regular expressions; empty paragraph</bookmark_value>
<bookmark_value>regular expressions; begin of word</bookmark_value>
<bookmark_value>regular expressions; begin of paragraph</bookmark_value>
<bookmark_value>regular expressions; end of paragraph</bookmark_value>
<bookmark_value>lists; regular expressions</bookmark_value>
<bookmark_value>replacing; tab stops (regular expressions)</bookmark_value>
<bookmark_value>tab stops; regular expressions</bookmark_value>
<bookmark_value>concatenation, see ampersand symbol</bookmark_value>
<bookmark_value>ampersand symbol, see also operators</bookmark_value>
</bookmark><comment>mw added "replacing;" and "tab stops;"</comment>
<h1 xml-lang="en-US" id="hd_id3146765"><variable id="02100001"><link href="text/shared/01/02100001.xhp">List of Regular Expressions</link></variable></h1>
<table id="tbl_id3149517">
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3149741" role="tablehead">Term</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3155577" role="tablehead">Representation/Use</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id6600543" role="tablecontent">Any character</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id9824518.00000001" role="tablecontent">The given character, unless it is a regular expression meta character. The list of meta characters follows in this table.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph localize="false" id="par_id3152427" role="tablecontent">.</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3149031" role="tablecontent">Any single character except a line break or a paragraph break. For example, the search term "sh.rt" matches both "shirt" and "short".</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph localize="false" id="par_id3154682" role="tablecontent">^</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3155351" role="tablecontent">The beginning of a paragraph or cell. Special objects such as empty fields or character-anchored frames, at the beginning of a paragraph are ignored. Example: "^Peter" matches the word "Peter" only when it is the first word of a paragraph.
</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3159194" localize="false" role="tablecontent">$</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3152542" role="tablecontent">The end of a paragraph or cell. Special objects such as empty fields or character-anchored frames at the end of a paragraph are ignored. Example: "Peter$" matches only when the word "Peter" is the last word of a paragraph, note "Peter" cannot be followed by a period.</paragraph>
<paragraph xml-lang="en-US" id="par_id3152543" role="tablecontent">$ on its own matches the end of a paragraph. This way it is possible to search and replace paragraph breaks.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3156414" role="tablecontent" localize="false">*</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3155555" role="tablecontent">Zero or more of the regular expression term immediately preceding it. For example, "Ab*c" matches "Ac", "Abc", "Abbc", "Abbbc", and so on.
</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3147399" localize="false" role="tablecontent">+</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3157958" role="tablecontent">One or more of the regular expression term immediately preceding it. For example, "AX.+4" finds "AXx4", but not "AX4".</paragraph>
<paragraph xml-lang="en-US" id="par_id3145313" role="tablecontent">The longest possible string that matches this regular expression in a paragraph is always matched. If the paragraph contains the string "AX 4 AX4", the entire passage is highlighted.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3143267" localize="false" role="tablecontent">?</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3153684" role="tablecontent">Zero or one of the regular expression term immediately preceding it. For example, "Texts?" matches "Text" and "Texts" and "x(ab|c)?y" finds "xy", "xaby", or "xcy".</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3166410" localize="false" role="tablecontent">\</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3147209" role="tablecontent">The special character that follows it is interpreted as a normal character and not as a regular expression meta character (except for the combinations "\n", "\t", "\b", "\>" and "\<"). For example, "tree\." matches "tree.", not "treed" or "trees".</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3152945" localize="false" role="tablecontent">\n</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3153700" role="tablecontent">A line break that was inserted with the <keycode>Shift+Enter</keycode> key combination when in the <widget>Find</widget> text box. </paragraph>
<paragraph role="tablecontent" id="par_id731559575258580">A paragraph break that can be entered with the <keycode>Enter</keycode> or <keycode>Return</keycode> key when in the <widget>Replace</widget> text box in Writer. Has no special meaning in Calc, and is treated literally there.</paragraph>
<paragraph role="tablecontent" id="par_id631559575338134">To change line breaks into paragraph breaks, enter \n in both the <widget>Find</widget> and <widget>Replace</widget> boxes, and then perform a search and replace.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3153258" localize="false" role="tablecontent">\t</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3157809" role="tablecontent">A tab character. Can also be used in the <widget>Replace</widget> box.
</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3150670" localize="false" role="tablecontent">\b</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3153666" role="tablecontent">A word boundary. For example, "\bbook" matches "bookmark" and "book" but not "checkbook" whereas "book\b" matches "checkbook" and "book" but not "bookmark".</paragraph>
<paragraph role="tablecontent" id="par_id851559575484466">Note, this form replaces the obsolete (although they still work for now) forms "\>" (match end of word) and "\<" (match start of word).</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3149576" localize="false" role="tablecontent">^$</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3151245" role="tablecontent">Finds an empty paragraph.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3148550" localize="false" role="tablecontent">^.</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3159413" role="tablecontent">Finds the first character of a paragraph.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3147282" role="tablecontent">& or $0</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3153961" role="tablecontent">Adds the string that was found by the search criteria in the <widget>Find</widget> box to the term in the <widget>Replace</widget> box when you make a replacement.</paragraph>
<paragraph xml-lang="en-US" id="par_id3149650" role="tablecontent">For example, if you enter "window" in the <widget>Find</widget> box and "&frame" in the <widget>Replace</widget> box, the word "window" is replaced with "windowframe".</paragraph>
<paragraph xml-lang="en-US" id="par_id3150543" role="tablecontent">You can also enter an "&" in the <widget>Replace</widget> box to modify the <emph>Attributes</emph> or the <emph>Format</emph> of the string found by the search criteria.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3145419" localize="false" role="tablecontent">[...]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3154630" role="tablecontent">Any single occurrence of any one of the characters that are between the brackets. For example: "[abc123]" matches the characters ‘a’, ‘b’, ’c’, ‘1’, ‘2’ and ‘3’. "[a-e]" matches single occurrences of the characters a through e, inclusive (the range must be specified with the character having the smallest Unicode code number first). "[a-eh-x]" matches any single occurrence of the characters that are in the ranges ‘a’ through ‘e’ and ‘h’ through ‘x’.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3156293" localize="false" role="tablecontent">[^...]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3149167" role="tablecontent">Any single occurrence of a character, including Tab, Space and Line Break characters, that is not in the list of characters specified inclusive ranges are permitted. For example "[^a-syz]" matches all characters not in the inclusive range ‘a’ through ‘s’ or the characters ‘y’ and ‘z’.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3156543" localize="false" role="tablecontent">\uXXXX</paragraph>
<paragraph id="par_id3156544" localize="false" role="tablecontent">\UXXXXXXXX</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3153768" role="tablecontent">The character represented by the four-digit hexadecimal Unicode code (XXXX).</paragraph>
<paragraph xml-lang="en-US" id="par_id3153769" role="tablecontent">The character represented by the eight-digit hexadecimal Unicode code (XXXXXXXX).</paragraph>
<paragraph xml-lang="en-US" id="par_id3159252" role="tablecontent">For certain symbol fonts the symbol (glyph) that you see on screen may look related to a different Unicode code than what is actually used for it in the font. The Unicode codes can be viewed by choosing <menuitem>Insert - Special Character</menuitem>, or by using <link href="text/shared/04/01010000.xhp#unicode_shortcut">Unicode conversion shortcut</link>.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3153951" localize="false" role="tablecontent">|</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3154985" role="tablecontent">The infix operator delimiting alternatives. Matches the term preceding the "|" or the term following the "|". For example, "this|that" matches occurrences of both "this" and "that".</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3147376" localize="false" role="tablecontent">{N}</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3150103" role="tablecontent">The post-fix repetition operator that specifies an exact number of occurrences ("N") of the regular expression term immediately preceding it must be present for a match to occur. For example, "tre{2}" matches "tree".</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3151289" localize="false" role="tablecontent">{N,M}</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3147317" role="tablecontent">The post-fix repetition operator that specifies a range (minimum of "N" to a maximum of "M") of occurrences of the regular expression term immediately preceding it that can be present for a match to occur. For example, "tre{1,2}" matches "tre" and "tree".</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id4870754" localize="false" role="tablecontent">{N,}</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id843836" role="tablecontent">The post-fix repetition operator that specifies a range (minimum "N" to an unspecified maximum) of occurrences of the regular expression term immediately preceding it that can be present for a match to occur. (The maximum number of occurrences is limited only by the size of the document). For example, "tre{2,}" matches "tree", "treee", and "treeeee".</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3148616" localize="false" role="tablecontent">(...)</paragraph>
</tablecell>
<tablecell>
<paragraph role="paragraph" id="par_id91559576682961">The grouping construct that serves three purposes.</paragraph>
<list type="ordered">
<listitem>
<paragraph id="par_id871559576709007" role="listitem">To enclose a set of ‘|’ alternatives. For example, the regular expression "b(oo|ac)k" matches both "book" and "back".</paragraph>
</listitem>
<listitem>
<paragraph id="par_id891559576747109" role="listitem">To group terms in a complex expression to be operated on by the post-fix operators: "*", "+" and "?" along with the post-fix repetition operators. For example, the regular expression "a(bc)?d" matches both "ad" and "abcd" in a search.; the regular expression "M(iss){2}ippi" matches "Mississippi".</paragraph>
</listitem>
<listitem>
<paragraph id="par_id801559576780692" role="listitem">To record the matched sub string inside the parentheses as a reference for later use in the <widget>Find</widget> box using the "\n" construct or in the <widget>Replace</widget> box using the "$n" construct. The reference to the first match is represented by "\1" in the <widget>Find</widget> box and by "$1" in the <widget>Replace</widget> box. The reference to the second matched sub string by "\2" and "$2" respectively, and so on.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id951559576846997">For example, the regular expression "(890)7\1\1" matches "8907890890".</paragraph>
<paragraph role="paragraph" id="par_id561559576865734">With the regular expression "\b(fruit|truth)\b" in the Find box and the regular expression "$1ful" in the Replace box occurrences of the words "fruit" and "truth" can be replaced with the words "fruitful" and "truthful" respectively without affecting the words "fruitfully" and "truthfully"</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3154790" localize="false" role="tablecontent">[:alpha:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3147397" role="tablecontent">Represents an alphabetic character. Use <emph>[:alpha:]+</emph> to find one of them.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3152885" localize="false" role="tablecontent">[:digit:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3150010" role="tablecontent">Represents a decimal digit. Use <emph>[:digit:]+</emph> to find one of them.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3153743" localize="false" role="tablecontent">[:alnum:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3153281" role="tablecontent">Represents an alphanumeric character ([:alpha:] and [:digit:]).</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3153726" localize="false" role="tablecontent">[:space:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3150961" role="tablecontent">Represents a space character (but not other whitespace characters).<comment>UFI: see #i41706#</comment></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3150486" localize="false" role="tablecontent">[:print:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3150872" role="tablecontent">Represents a printable character.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3155854" localize="false" role="tablecontent">[:cntrl:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3152576" role="tablecontent">Represents a nonprinting character.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3149958" localize="false" role="tablecontent">[:lower:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3145730" role="tablecontent">Represents a lowercase character if <emph>Match case</emph> is selected in <emph>Options</emph>.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id3148455" localize="false" role="tablecontent">[:upper:]</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3150092" role="tablecontent">Represents an uppercase character if <emph>Match case</emph> is selected in <emph>Options</emph>.</paragraph>
</tablecell>
</tablerow>
</table>
<paragraph xml-lang="en-US" id="par_id5311440" role="paragraph">For a full list of supported metacharacters and syntax, see <link href="https://unicode-org.github.io/icu/userguide/strings/regexp.html#regular-expression-metacharacters" name="ICU Regular Expressions documentation">ICU Regular Expressions documentation</link></paragraph>
<paragraph role="paragraph" id="par_id261559577375317">Regular expression terms can be combined to form complex and sophisticated regular expressions for searches as show in the following examples.</paragraph>
<h2 id="hd_id5311441">Examples</h2>
<table id="tab_id831559577400291">
<tablerow>
<tablecell>
<paragraph id="par_id901559577400292" role="tablehead">Expression</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id381559577400292" role="tablehead">Meaning</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id641559577400292" role="tablecontent" localize="false">^$</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id621559577542068" role="tablecontent">An empty paragraph.</paragraph>
<paragraph id="par_id311559577563701" role="tablecontent"><variable id="startpar">^ specifies that the match must be at the start of a paragraph,</variable></paragraph>
<paragraph id="par_id391559577592658" role="tablecontent"><variable id="endpar">$ specifies that a paragraph mark or the end of a cell must follow the matched string.</variable></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id251559577837101" role="tablecontent" localize="false">^.</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id771559577837101" role="tablecontent">The first character of a paragraph.</paragraph>
<paragraph role="tablecontent" id="par_id871559577915900" localize="false"><embedvar href="text/shared/01/02100001.xhp#startpar" markup="ignore"/> </paragraph>
<paragraph role="tablecontent" id="par_id171559577924884">. specifies any single character.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id721559577961403" role="tablecontent" localize="false">e([:digit:])?</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id471559577961403" role="tablecontent">Matches "e" by itself or an "e" followed by one digit.</paragraph>
<paragraph role="tablecontent" id="par_id421559578050163">e specifies the character "e",</paragraph>
<paragraph role="tablecontent" id="par_id591559578054502"><variable id="digit">[:digit:] specifies any decimal digit,</variable></paragraph>
<paragraph role="tablecontent" id="par_id341559578058972">? specifies zero or one occurrences of [:digit:].</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id191559578087559" role="tablecontent" localize="false">^([:digit:])$</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id551559578087559" role="tablecontent" >Matches a paragraph or cells containing exactly one digit.</paragraph>
<paragraph role="tablecontent" id="par_id721559578137006" localize="false"><embedvar href="text/shared/01/02100001.xhp#startpar" markup="ignore"/></paragraph>
<paragraph role="tablecontent" id="par_id941559578151564" localize="false"><embedvar href="text/shared/01/02100001.xhp#digit" markup="ignore"/></paragraph>
<paragraph role="tablecontent" id="par_id791559578157006" localize="false"><embedvar href="text/shared/01/02100001.xhp#endpar" markup="ignore"/></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id651559578184372" role="tablecontent" localize="false">^[:digit:]{3}$</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id771559578184372" role="tablecontent">Matches a paragraph or cell containing only three digit numbers</paragraph>
<paragraph role="tablecontent" id="par_id631559578489930" localize="false"><embedvar href="text/shared/01/02100001.xhp#startpar" markup="ignore"/></paragraph>
<paragraph role="tablecontent" id="par_id551559578496775" localize="false"><embedvar href="text/shared/01/02100001.xhp#digit"/></paragraph>
<paragraph role="tablecontent" id="par_id401559578501329">{3} specifies that [:digit:] must occur three times,</paragraph>
<paragraph role="tablecontent" id="par_id251559578508215" localize="false"><embedvar href="text/shared/01/02100001.xhp#endpar" markup="ignore"/></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id131559578728924" role="tablecontent">\bconst(itu|ruc)tion\b</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id891559578728925" role="tablecontent">Matches the words "constitution" and "construction" but not the word "constitutional."</paragraph>
<paragraph role="tablecontent" id="par_id381559578787403">\b specifies that the match must begin at a word boundary,</paragraph>
<paragraph role="tablecontent" id="par_id721559578792194">const specifies the characters "const",</paragraph>
<paragraph role="tablecontent" id="par_id941559578797721">( starts the group,</paragraph>
<paragraph role="tablecontent" id="par_id641559578802269">itu specifies the characters "itu",</paragraph>
<paragraph role="tablecontent" id="par_id271559578807054">| specifies the alternative,</paragraph>
<paragraph role="tablecontent" id="par_id801559578813944">ruc specifies the characters "ruc",</paragraph>
<paragraph role="tablecontent" id="par_id421559578820595">) ends the group,</paragraph>
<paragraph role="tablecontent" id="par_id621559578825464">tion specifies the characters "tion",</paragraph>
<paragraph role="tablecontent" id="par_id91559578832058">\b specifies that the match must end at a word boundary.</paragraph>
</tablecell>
</tablerow>
</table>
<section id="relatedtopics">
<embed href="text/shared/01/02100000.xhp#02100000"/>
<switch select="appl">
<case select="WRITER"><embed href="text/swriter/guide/search_regexp.xhp#search_regexp"/>
<embed href="text/swriter/guide/finding.xhp#finding"/>
</case>
</switch>
<paragraph xml-lang="en-US" id="par_id1751457" role="paragraph"><link href="https://wiki.documentfoundation.org/Documentation/How_Tos/Regular_Expressions_in_Writer" name="wiki.documentfoundation.org Documentation/HowTo/Writer/Regular Expressions">Wiki page about regular expressions in Writer</link></paragraph>
<paragraph xml-lang="en-US" id="par_id5483870" role="paragraph"><link href="https://wiki.documentfoundation.org/Documentation/How_Tos/Regular_Expressions_in_Calc" name="wiki.documentfoundation.org Documentation/HowTo/Calc/Regular Expressions">Wiki page about regular expressions in Calc</link></paragraph>
</section>
</body>
</helpdocument>
|