Helpo de LibreOfficeDev 25.8
Regular expressions are special patterns used to find and manipulate text, helping you locate specific information within texts.
Serĉi per regulaj esprimoj diferencas al serĉi per ĵokeroj. LibreOfficeDev-Verkilo subtenas nur serĉi per regulaj esprimoj.
Vi povas uzi regulajn esprimojn kiam vi serĉas kaj anstataŭigas tekston en dokumento. Ekzemple, "fi.o" trovas je "fido" kaj "filo".
Elektu je
.Alkalku je
por etendi la dialogon.Marku la markobutonon
.En la kampo
, tajpu la serĉotan terminon kaj la regula(j)n esprimo(j)n uzotajn en la serĉo.Alkalku al
aŭ .La regula esprimo por unuopa signo estas la punkto (.).
The regular expression for a word character \w, and \d for a decimal digit.
La regula esprimo por nul aŭ pli da aperoj de la antaŭa signo estas la steleto. Ekzemple: "123*" trovas "12", "123", kaj "1233".
The regular expression to search for zero or more occurrences of any character is a period and asterisk (.*).
The regular expression for one or more occurrences of the previous character is a plus sign (+). For example: "\w+" finds any word, "\d+" any number.
The regular expression for a tab character is \t. More generally, \s stands for all kinds of "spaces", like non-breaking space, carriage return ...
The regular expression for the end of a paragraph is a dollar sign ($). The regular expression for the start of a paragraph is a caret and a period (^.). The regular expression for an empty paragraph is ^$.
A search using a regular expression will work only within one paragraph. That is, a \n will match a line break within a paragraph.