1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 3ce44d6c1SAndrew Rist<!--*********************************************************** 4cdf0e10cSrcweir * 5ce44d6c1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 6ce44d6c1SAndrew Rist * or more contributor license agreements. See the NOTICE file 7ce44d6c1SAndrew Rist * distributed with this work for additional information 8ce44d6c1SAndrew Rist * regarding copyright ownership. The ASF licenses this file 9ce44d6c1SAndrew Rist * to you under the Apache License, Version 2.0 (the 10ce44d6c1SAndrew Rist * "License"); you may not use this file except in compliance 11ce44d6c1SAndrew Rist * with the License. You may obtain a copy of the License at 12cdf0e10cSrcweir * 13ce44d6c1SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14cdf0e10cSrcweir * 15ce44d6c1SAndrew Rist * Unless required by applicable law or agreed to in writing, 16ce44d6c1SAndrew Rist * software distributed under the License is distributed on an 17ce44d6c1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18ce44d6c1SAndrew Rist * KIND, either express or implied. See the License for the 19ce44d6c1SAndrew Rist * specific language governing permissions and limitations 20ce44d6c1SAndrew Rist * under the License. 21cdf0e10cSrcweir * 22ce44d6c1SAndrew Rist ***********************************************************--> 23ce44d6c1SAndrew Rist 24d1c38b03Smseidel<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26cdf0e10cSrcweir<topic id="textshared0102100001xml" indexer="include" status="PUBLISH"> 27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">List of Regular Expressions</title> 28cdf0e10cSrcweir<filename>/text/shared/01/02100001.xhp</filename> 29cdf0e10cSrcweir</topic> 30cdf0e10cSrcweir</meta> 31cdf0e10cSrcweir<body> 32d1c38b03Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3146765"> 33d1c38b03Smseidel<bookmark_value>regular expressions; list of</bookmark_value> 34cdf0e10cSrcweir<bookmark_value>lists;regular expressions</bookmark_value> 35cdf0e10cSrcweir<bookmark_value>replacing;tab stops (regular expressions)</bookmark_value> 36cdf0e10cSrcweir<bookmark_value>tab stops;regular expressions</bookmark_value> 37cdf0e10cSrcweir<bookmark_value>concatenation, see ampersand symbol</bookmark_value> 38cdf0e10cSrcweir<bookmark_value>ampersand symbol, see also operators</bookmark_value> 39cdf0e10cSrcweir</bookmark><comment>mw added "replacing;" and "tab stops;"</comment> 40*4fd23d01Smseidel<paragraph xml-lang="en-US" id="hd_id3146765" role="heading" level="1" l10n="U"><variable id="02100001"><link href="text/shared/01/02100001.xhp">List of Regular Expressions</link> 41cdf0e10cSrcweir</variable></paragraph> 42cdf0e10cSrcweir<table id="tbl_id3149517"> 43cdf0e10cSrcweir<tablerow> 44cdf0e10cSrcweir<tablecell> 45*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3149741" role="tablehead" l10n="U">Character</paragraph> 46cdf0e10cSrcweir</tablecell> 47cdf0e10cSrcweir<tablecell> 48*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3155577" role="tablehead" l10n="U">Result/Use</paragraph> 49cdf0e10cSrcweir</tablecell> 50cdf0e10cSrcweir</tablerow> 51cdf0e10cSrcweir<tablerow> 52cdf0e10cSrcweir<tablecell> 53cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id6600543" role="tablecontent" l10n="NEW">Any character</paragraph> 54cdf0e10cSrcweir</tablecell> 55cdf0e10cSrcweir<tablecell> 56cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id9824518.00000001" role="tablecontent" l10n="CHG">Represents the given character unless otherwise specified.</paragraph> 57cdf0e10cSrcweir</tablecell> 58cdf0e10cSrcweir</tablerow> 59cdf0e10cSrcweir<tablerow> 60cdf0e10cSrcweir<tablecell> 61*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3152427" role="tablecontent" l10n="U">.</paragraph> 62cdf0e10cSrcweir</tablecell> 63cdf0e10cSrcweir<tablecell> 64*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3149031" role="tablecontent" l10n="CHG">Represents any single character except for a line break or paragraph break. For example, the search term "sh.rt" returns both "shirt" and "short".</paragraph> 65cdf0e10cSrcweir</tablecell> 66cdf0e10cSrcweir</tablerow> 67cdf0e10cSrcweir<tablerow> 68cdf0e10cSrcweir<tablecell> 69*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3154682" role="tablecontent" l10n="CHG">^</paragraph> 70cdf0e10cSrcweir</tablecell> 71cdf0e10cSrcweir<tablecell> 72*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3155351" role="tablecontent" l10n="CHG">Only finds the search term if the term is at the beginning of a paragraph. Special objects such as empty fields or character-anchored frames, at the beginning of a paragraph are ignored. Example: "^Peter".</paragraph> 73cdf0e10cSrcweir</tablecell> 74cdf0e10cSrcweir</tablerow> 75cdf0e10cSrcweir<tablerow> 76cdf0e10cSrcweir<tablecell> 77*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3159194" role="tablecontent" l10n="CHG">$</paragraph> 78cdf0e10cSrcweir</tablecell> 79cdf0e10cSrcweir<tablecell> 80*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3152542" role="tablecontent" l10n="CHG">Only finds the search term if the term appears at the end of a paragraph. Special objects such as empty fields or character-anchored frames at the end of a paragraph are ignored. Example: "Peter$".</paragraph> 81cdf0e10cSrcweir</tablecell> 82cdf0e10cSrcweir</tablerow> 83cdf0e10cSrcweir<tablerow> 84cdf0e10cSrcweir<tablecell> 85*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3156414" role="tablecontent" l10n="U">*</paragraph> 86cdf0e10cSrcweir</tablecell> 87cdf0e10cSrcweir<tablecell> 88*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3155555" role="tablecontent" l10n="CHG">Finds zero or more of the characters in front of the "*". For example, "Ab*c" finds "Ac", "Abc", "Abbc", "Abbbc", and so on.</paragraph> 89cdf0e10cSrcweir</tablecell> 90cdf0e10cSrcweir</tablerow> 91cdf0e10cSrcweir<tablerow> 92cdf0e10cSrcweir<tablecell> 93*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3147399" role="tablecontent" l10n="U">+</paragraph> 94cdf0e10cSrcweir</tablecell> 95cdf0e10cSrcweir<tablecell> 96*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3157958" role="tablecontent" l10n="CHG">Finds one or more of the characters in front of the "+". For example, "AX.+4" finds "AXx4", but not "AX4".</paragraph> 97*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3145313" role="tablecontent" l10n="U">The longest possible string that matches this search pattern in a paragraph is always found. If the paragraph contains the string "AX 4 AX4", the entire passage is highlighted.</paragraph> 98cdf0e10cSrcweir</tablecell> 99cdf0e10cSrcweir</tablerow> 100cdf0e10cSrcweir<tablerow> 101cdf0e10cSrcweir<tablecell> 102*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3143267" role="tablecontent" l10n="U">?</paragraph> 103cdf0e10cSrcweir</tablecell> 104cdf0e10cSrcweir<tablecell> 105*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153684" role="tablecontent" l10n="CHG">Finds zero or one of the characters in front of the "?". For example, "Texts?" finds "Text" and "Texts" and "x(ab|c)?y" finds "xy", "xaby", or "xcy".</paragraph> 106cdf0e10cSrcweir</tablecell> 107cdf0e10cSrcweir</tablerow> 108cdf0e10cSrcweir<tablerow> 109cdf0e10cSrcweir<tablecell> 110*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3166410" role="tablecontent" l10n="U">\</paragraph> 111cdf0e10cSrcweir</tablecell> 112cdf0e10cSrcweir<tablecell> 113*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3147209" role="tablecontent" l10n="CHG">Search interprets the special character that follows the "\" as a normal character and not as a regular expression (except for the combinations \n, \t, \>, and \<). For example, "tree\." finds "tree.", not "treed" or "trees".</paragraph> 114cdf0e10cSrcweir</tablecell> 115cdf0e10cSrcweir</tablerow> 116cdf0e10cSrcweir<tablerow> 117cdf0e10cSrcweir<tablecell> 118*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3152945" role="tablecontent" l10n="U">\n</paragraph> 119cdf0e10cSrcweir</tablecell> 120cdf0e10cSrcweir<tablecell> 121*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153700" role="tablecontent" l10n="CHG">Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter <emph>\n</emph> in the <emph>Search for</emph> and <emph>Replace with</emph> boxes, and then perform a search and replace.</paragraph> 122cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id9262672" role="tablecontent" l10n="NEW">\n in the <emph>Search for</emph> text box stands for a line break that was inserted with the Shift+Enter key combination.</paragraph> 123cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id2366100" role="tablecontent" l10n="NEW">\n in the <emph>Replace with</emph> text box stands for a paragraph break that can be entered with the Enter or Return key.</paragraph> 124cdf0e10cSrcweir</tablecell> 125cdf0e10cSrcweir</tablerow> 126cdf0e10cSrcweir<tablerow> 127cdf0e10cSrcweir<tablecell> 128*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153258" role="tablecontent" l10n="U">\t</paragraph> 129cdf0e10cSrcweir</tablecell> 130cdf0e10cSrcweir<tablecell> 131*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3157809" role="tablecontent" l10n="CHG">Represents a tab. You can also use this expression in the <emph>Replace with</emph> box.</paragraph> 132cdf0e10cSrcweir</tablecell> 133cdf0e10cSrcweir</tablerow> 134cdf0e10cSrcweir<tablerow> 135cdf0e10cSrcweir<tablecell> 136*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150670" role="tablecontent" l10n="U">\b</paragraph> 137cdf0e10cSrcweir</tablecell> 138cdf0e10cSrcweir<tablecell> 139*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153666" role="tablecontent" l10n="CHG">Match a word boundary. For example, "\bbook" finds "bookmark" but not "checkbook" whereas "book\b" finds "checkbook" but not "bookmark". The discrete word "book" is found by both search terms.</paragraph> 140cdf0e10cSrcweir</tablecell> 141cdf0e10cSrcweir</tablerow> 142cdf0e10cSrcweir<tablerow> 143cdf0e10cSrcweir<tablecell> 144*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3149576" role="tablecontent" l10n="U">^$</paragraph> 145cdf0e10cSrcweir</tablecell> 146cdf0e10cSrcweir<tablecell> 147*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3151245" role="tablecontent" l10n="CHG">Finds an empty paragraph.</paragraph> 148cdf0e10cSrcweir</tablecell> 149cdf0e10cSrcweir</tablerow> 150cdf0e10cSrcweir<tablerow> 151cdf0e10cSrcweir<tablecell> 152*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3148550" role="tablecontent" l10n="U">^.</paragraph> 153cdf0e10cSrcweir</tablecell> 154cdf0e10cSrcweir<tablecell> 155*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3159413" role="tablecontent" l10n="CHG">Finds the first character of a paragraph.</paragraph> 156cdf0e10cSrcweir</tablecell> 157cdf0e10cSrcweir</tablerow> 158cdf0e10cSrcweir<tablerow> 159cdf0e10cSrcweir<tablecell> 160*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3147282" role="tablecontent" l10n="CHG">& or $0</paragraph> 161cdf0e10cSrcweir</tablecell> 162cdf0e10cSrcweir<tablecell> 163*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153961" role="tablecontent" l10n="CHG">Adds the string that was found by the search criteria in the <emph>Search for</emph> box to the term in the <emph>Replace with</emph> box when you make a replacement.</paragraph> 164*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3149650" role="tablecontent" l10n="CHG">For example, if you enter "window" in the <emph>Search for</emph> box and "&frame" in the <emph>Replace with</emph> box, the word "window" is replaced with "windowframe".</paragraph> 165*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150543" role="tablecontent" l10n="CHG">You can also enter an "&" in the <emph>Replace with</emph> box to modify the <emph>Attributes</emph> or the <emph>Format</emph> of the string found by the search criteria.</paragraph> 166cdf0e10cSrcweir</tablecell> 167cdf0e10cSrcweir</tablerow> 168cdf0e10cSrcweir<tablerow> 169cdf0e10cSrcweir<tablecell> 170*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3145419" role="tablecontent" l10n="U">[abc123]</paragraph> 171cdf0e10cSrcweir</tablecell> 172cdf0e10cSrcweir<tablecell> 173*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3154630" role="tablecontent" l10n="CHG">Represents one of the characters that are between the brackets.</paragraph> 174cdf0e10cSrcweir</tablecell> 175cdf0e10cSrcweir</tablerow> 176cdf0e10cSrcweir<tablerow> 177cdf0e10cSrcweir<tablecell> 178*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3156293" role="tablecontent" l10n="U">[a-e]</paragraph> 179cdf0e10cSrcweir</tablecell> 180cdf0e10cSrcweir<tablecell> 181*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3149167" role="tablecontent" l10n="CHG">Represents any of the characters that are between a and e, including both start and end characters</paragraph> 182cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id100520090232005" role="tablecontent" l10n="NEW">The characters are ordered by their code numbers.</paragraph> 183cdf0e10cSrcweir</tablecell> 184cdf0e10cSrcweir</tablerow> 185cdf0e10cSrcweir<tablerow> 186cdf0e10cSrcweir<tablecell> 187*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3155994" role="tablecontent" l10n="U">[a-eh-x]</paragraph> 188cdf0e10cSrcweir</tablecell> 189cdf0e10cSrcweir<tablecell> 190*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3148676" role="tablecontent" l10n="CHG">Represents any of the characters that are between a-e and h-x.</paragraph> 191cdf0e10cSrcweir</tablecell> 192cdf0e10cSrcweir</tablerow> 193cdf0e10cSrcweir<tablerow> 194cdf0e10cSrcweir<tablecell> 195*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3145318" role="tablecontent" l10n="U">[^a-s]</paragraph> 196cdf0e10cSrcweir</tablecell> 197cdf0e10cSrcweir<tablecell> 198*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153351" role="tablecontent" l10n="CHG">Represents everything that is not between a and s.</paragraph> 199cdf0e10cSrcweir</tablecell> 200cdf0e10cSrcweir</tablerow> 201cdf0e10cSrcweir<tablerow> 202cdf0e10cSrcweir<tablecell> 203*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3156543" role="tablecontent" l10n="U">\xXXXX</paragraph> 204cdf0e10cSrcweir</tablecell> 205cdf0e10cSrcweir<tablecell> 206*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153768" role="tablecontent" l10n="U">Represents a special character based on its four-digit hexadecimal code (XXXX).</paragraph> 207*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3159252" role="tablecontent" l10n="U">The code for the special character depends on the font used. You can view the codes by choosing <emph>Insert - Special Character</emph>.</paragraph> 208cdf0e10cSrcweir</tablecell> 209cdf0e10cSrcweir</tablerow> 210cdf0e10cSrcweir<tablerow> 211cdf0e10cSrcweir<tablecell> 212*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153951" role="tablecontent" l10n="U">|</paragraph> 213cdf0e10cSrcweir</tablecell> 214cdf0e10cSrcweir<tablecell> 215*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3154985" role="tablecontent" l10n="CHG">Finds the terms that occur before the "|" and also finds the terms that occur after the "|". For example, "this|that" finds "this" and "that".</paragraph> 216cdf0e10cSrcweir</tablecell> 217cdf0e10cSrcweir</tablerow> 218cdf0e10cSrcweir<tablerow> 219cdf0e10cSrcweir<tablecell> 220*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3147376" role="tablecontent" l10n="U">{2}</paragraph> 221cdf0e10cSrcweir</tablecell> 222cdf0e10cSrcweir<tablecell> 223*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150103" role="tablecontent" l10n="U">Defines the number of times that the character in front of the opening bracket occurs. For example, "tre{2}" finds and selects "tree".</paragraph> 224cdf0e10cSrcweir</tablecell> 225cdf0e10cSrcweir</tablerow> 226cdf0e10cSrcweir<tablerow> 227cdf0e10cSrcweir<tablecell> 228*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3151289" role="tablecontent" l10n="U">{1,2}</paragraph> 229cdf0e10cSrcweir</tablecell> 230cdf0e10cSrcweir<tablecell> 231*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3147317" role="tablecontent" l10n="CHG">Defines the minimum and maximum number of times that the character in front of the opening bracket can occur. For example, "tre{1,2}" finds and selects "tre" and "tree".</paragraph> 232cdf0e10cSrcweir</tablecell> 233cdf0e10cSrcweir</tablerow> 234cdf0e10cSrcweir<tablerow> 235cdf0e10cSrcweir<tablecell> 236cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id4870754" role="tablecontent" l10n="NEW">{1,}</paragraph> 237cdf0e10cSrcweir</tablecell> 238cdf0e10cSrcweir<tablecell> 239cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id843836" role="tablecontent" l10n="NEW">Defines the minimum number of times that the character in front of the opening bracket can occur. For example, "tre{2,}" finds "tree", "treee", and "treeeee".</paragraph> 240cdf0e10cSrcweir</tablecell> 241cdf0e10cSrcweir</tablerow> 242cdf0e10cSrcweir<tablerow> 243cdf0e10cSrcweir<tablecell> 244*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3148616" role="tablecontent" l10n="U">( )</paragraph> 245cdf0e10cSrcweir</tablecell> 246cdf0e10cSrcweir<tablecell> 247cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id2701803" role="tablecontent" l10n="NEW">In the <emph>Search for</emph> box:</paragraph> 248*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153573" role="tablecontent" l10n="CHG">Defines the characters inside the parentheses as a reference. You can then refer to the first reference in the current expression with "\1", to the second reference with "\2", and so on.</paragraph> 249*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3156061" role="tablecontent" l10n="U">For example, if your text contains the number 13487889 and you search using the regular expression (8)7\1\1, "8788" is found.</paragraph> 250cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id2367931" role="tablecontent" l10n="NEW">You can also use () to group terms, for example, "a(bc)?d" finds "ad" or "abcd".</paragraph> 251cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id9200109" role="tablecontent" l10n="NEW">In the <emph>Replace with</emph> box:<comment>i83322</comment></paragraph> 252cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id5766472" role="tablecontent" l10n="NEW">Use $ (dollar) instead of \ (backslash) to replace references. Use $0 to replace the whole found string.</paragraph> 253cdf0e10cSrcweir</tablecell> 254cdf0e10cSrcweir</tablerow> 255cdf0e10cSrcweir<tablerow> 256cdf0e10cSrcweir<tablecell> 257*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3154790" role="tablecontent" l10n="U">[:alpha:]</paragraph> 258cdf0e10cSrcweir</tablecell> 259cdf0e10cSrcweir<tablecell> 260*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3147397" role="tablecontent" l10n="CHG">Represents an alphabetic character. Use [:alpha:]+ to find one or more of them.</paragraph> 261cdf0e10cSrcweir</tablecell> 262cdf0e10cSrcweir</tablerow> 263cdf0e10cSrcweir<tablerow> 264cdf0e10cSrcweir<tablecell> 265*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3152885" role="tablecontent" l10n="U">[:digit:]</paragraph> 266cdf0e10cSrcweir</tablecell> 267cdf0e10cSrcweir<tablecell> 268*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150010" role="tablecontent" l10n="CHG">Represents a decimal digit. Use [:digit:]+ to find one or more of them.</paragraph> 269cdf0e10cSrcweir</tablecell> 270cdf0e10cSrcweir</tablerow> 271cdf0e10cSrcweir<tablerow> 272cdf0e10cSrcweir<tablecell> 273*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153743" role="tablecontent" l10n="U">[:alnum:]</paragraph> 274cdf0e10cSrcweir</tablecell> 275cdf0e10cSrcweir<tablecell> 276*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153281" role="tablecontent" l10n="CHG">Represents an alphanumeric character ([:alpha:] and [:digit:]).</paragraph> 277cdf0e10cSrcweir</tablecell> 278cdf0e10cSrcweir</tablerow> 279cdf0e10cSrcweir<tablerow> 280cdf0e10cSrcweir<tablecell> 281*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3153726" role="tablecontent" l10n="U">[:space:]</paragraph> 282cdf0e10cSrcweir</tablecell> 283cdf0e10cSrcweir<tablecell> 284*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150961" role="tablecontent" l10n="CHG">Represents a whitespace character.</paragraph> 285cdf0e10cSrcweir</tablecell> 286cdf0e10cSrcweir</tablerow> 287cdf0e10cSrcweir<tablerow> 288cdf0e10cSrcweir<tablecell> 289*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150486" role="tablecontent" l10n="U">[:print:]</paragraph> 290cdf0e10cSrcweir</tablecell> 291cdf0e10cSrcweir<tablecell> 292*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150872" role="tablecontent" l10n="CHG">Represents a printable character.</paragraph> 293cdf0e10cSrcweir</tablecell> 294cdf0e10cSrcweir</tablerow> 295cdf0e10cSrcweir<tablerow> 296cdf0e10cSrcweir<tablecell> 297*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3155854" role="tablecontent" l10n="U">[:cntrl:]</paragraph> 298cdf0e10cSrcweir</tablecell> 299cdf0e10cSrcweir<tablecell> 300*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3152576" role="tablecontent" l10n="CHG">Represents a nonprinting character.</paragraph> 301cdf0e10cSrcweir</tablecell> 302cdf0e10cSrcweir</tablerow> 303cdf0e10cSrcweir<tablerow> 304cdf0e10cSrcweir<tablecell> 305*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3149958" role="tablecontent" l10n="U">[:lower:]</paragraph> 306cdf0e10cSrcweir</tablecell> 307cdf0e10cSrcweir<tablecell> 308*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3145730" role="tablecontent" l10n="CHG">Represents a lowercase character if <emph>Match case</emph> is selected in <emph>Options</emph>.</paragraph> 309cdf0e10cSrcweir</tablecell> 310cdf0e10cSrcweir</tablerow> 311cdf0e10cSrcweir<tablerow> 312cdf0e10cSrcweir<tablecell> 313*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3148455" role="tablecontent" l10n="U">[:upper:]</paragraph> 314cdf0e10cSrcweir</tablecell> 315cdf0e10cSrcweir<tablecell> 316*4fd23d01Smseidel<paragraph xml-lang="en-US" id="par_id3150092" role="tablecontent" l10n="CHG">Represents an uppercase character if <emph>Match case</emph> is selected in <emph>Options.</emph> 317cdf0e10cSrcweir</paragraph> 318cdf0e10cSrcweir</tablecell> 319cdf0e10cSrcweir</tablerow> 320cdf0e10cSrcweir</table> 321cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id5311441" role="heading" level="2" l10n="NEW">Examples</paragraph> 322cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id956834773" role="paragraph" l10n="NEW">e([:digit:])? -- finds 'e' followed by zero or one digit. Note that currently all named character classes like [:digit:] must be enclosed in parentheses.<comment>issue 64368 and 113035</comment></paragraph> 323cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id952368773" role="paragraph" l10n="NEW">^([:digit:])$ -- finds lines or cells with exactly one digit.</paragraph> 324cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id9568773" role="paragraph" l10n="NEW">You can combine the search terms to form complex searches.</paragraph> 325cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id71413" role="heading" level="3" l10n="NEW">To find three-digit numbers alone in a paragraph</paragraph> 326cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id2924283" role="code" l10n="NEW">^[:digit:]{3}$</paragraph> 327cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id5781731" role="paragraph" l10n="NEW">^ means the match has to be at the start of a paragraph,</paragraph> 328cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id6942045" role="paragraph" l10n="NEW">[:digit:] matches any decimal digit,</paragraph> 329cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id4721823" role="paragraph" l10n="NEW">{3} means there must be exactly 3 copies of "digit",</paragraph> 330cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id5806756" role="paragraph" l10n="NEW">$ means the match must end a paragraph.</paragraph> 331cdf0e10cSrcweir<section id="relatedtopics"> 332cdf0e10cSrcweir<embed href="text/shared/01/02100000.xhp#02100000"/> 333cdf0e10cSrcweir<switch select="appl"> 334cdf0e10cSrcweir<case select="WRITER"><embed href="text/swriter/guide/search_regexp.xhp#search_regexp"/> 335cdf0e10cSrcweir<embed href="text/swriter/guide/finding.xhp#finding"/> 336cdf0e10cSrcweir</case> 337cdf0e10cSrcweir</switch> 3386f9008d8SAriel Constenla-Haile<paragraph xml-lang="en-US" id="par_id1751457" role="paragraph" l10n="NEW"><link href="https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer">Wiki page about regular expressions in Writer</link></paragraph> 3396f9008d8SAriel Constenla-Haile<paragraph xml-lang="en-US" id="par_id5483870" role="paragraph" l10n="NEW"><link href="https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Calc">Wiki page about regular expressions in Calc</link></paragraph> 340cdf0e10cSrcweir</section> 341cdf0e10cSrcweir</body> 342cdf0e10cSrcweir</helpdocument> 343