1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?> 2*b1cdbd2cSJim Jagielski<helpdocument version="1.0"> 3*b1cdbd2cSJim Jagielski 4*b1cdbd2cSJim Jagielski<!--*********************************************************** 5*b1cdbd2cSJim Jagielski * 6*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 7*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 8*b1cdbd2cSJim Jagielski * distributed with this work for additional information 9*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 10*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 11*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 12*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 13*b1cdbd2cSJim Jagielski * 14*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 15*b1cdbd2cSJim Jagielski * 16*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 17*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 18*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 20*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 21*b1cdbd2cSJim Jagielski * under the License. 22*b1cdbd2cSJim Jagielski * 23*b1cdbd2cSJim Jagielski ***********************************************************--> 24*b1cdbd2cSJim Jagielski 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski 28*b1cdbd2cSJim Jagielski<meta> 29*b1cdbd2cSJim Jagielski <topic id="textswriterguidesearch_regexpxml" indexer="include" status="PUBLISH"> 30*b1cdbd2cSJim Jagielski <title xml-lang="en-US" id="tit">Using Wildcards in Text Searches</title> 31*b1cdbd2cSJim Jagielski <filename>/text/swriter/guide/search_regexp.xhp</filename> 32*b1cdbd2cSJim Jagielski </topic> 33*b1cdbd2cSJim Jagielski </meta> 34*b1cdbd2cSJim Jagielski <body> 35*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3150099"><bookmark_value>wildcards, see regular expressions</bookmark_value> 36*b1cdbd2cSJim Jagielski <bookmark_value>searching; with wildcards</bookmark_value> 37*b1cdbd2cSJim Jagielski <bookmark_value>regular expressions;searching</bookmark_value> 38*b1cdbd2cSJim Jagielski <bookmark_value>examples for regular expressions</bookmark_value> 39*b1cdbd2cSJim Jagielski <bookmark_value>characters;finding all</bookmark_value> 40*b1cdbd2cSJim Jagielski <bookmark_value>invisible characters;finding</bookmark_value> 41*b1cdbd2cSJim Jagielski <bookmark_value>paragraph marks;searching</bookmark_value> 42*b1cdbd2cSJim Jagielski</bookmark><comment>mw deleted "wildcards;" and inserted wildcards crossreference</comment><comment>mw added "paragraph marks;"</comment> 43*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3150099" role="heading" level="1" l10n="U" 44*b1cdbd2cSJim Jagielski oldref="15"><variable id="search_regexp"><link href="text/swriter/guide/search_regexp.xhp">Using Wildcards in Text Searches</link> 45*b1cdbd2cSJim Jagielski</variable></paragraph> 46*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id0509200916345516" role="paragraph" l10n="NEW">Wildcards or placeholders can be used to search for some unspecified or even invisible characters.</paragraph> 47*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3155182" role="paragraph" oldref="50">You can use wildcards when you find and replace text in a document. For example, "s.n" finds "sun" and "son".</paragraph> 48*b1cdbd2cSJim Jagielski <list type="ordered"> 49*b1cdbd2cSJim Jagielski <listitem> 50*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3155907" role="listitem" l10n="U" oldref="40">Choose <item type="menuitem">Edit - Find & Replace</item>.</paragraph> 51*b1cdbd2cSJim Jagielski </listitem> 52*b1cdbd2cSJim Jagielski <listitem> 53*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id2142399" role="listitem" l10n="NEW">Click <item type="menuitem">More Options</item> to expand the dialog.</paragraph> 54*b1cdbd2cSJim Jagielski </listitem> 55*b1cdbd2cSJim Jagielski <listitem> 56*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3155861" role="listitem" l10n="U" oldref="41">Select the <item type="menuitem">Regular expressions</item> check box.</paragraph> 57*b1cdbd2cSJim Jagielski </listitem> 58*b1cdbd2cSJim Jagielski <listitem> 59*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149843" role="listitem" l10n="U" oldref="42">In the <item type="menuitem">Search for</item> box, type the search term and the wildcard(s) that you want to use in your search.</paragraph> 60*b1cdbd2cSJim Jagielski </listitem> 61*b1cdbd2cSJim Jagielski <listitem> 62*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3156113" role="listitem" l10n="U" oldref="51">Click <item type="menuitem">Find</item> or <item type="menuitem">Find All</item>.</paragraph> 63*b1cdbd2cSJim Jagielski </listitem> 64*b1cdbd2cSJim Jagielski </list> 65*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="hd_id3153401" role="heading" level="2" l10n="U" 66*b1cdbd2cSJim Jagielski oldref="52">Regular Expression Examples</paragraph> 67*b1cdbd2cSJim Jagielski <list type="ordered"> 68*b1cdbd2cSJim Jagielski <listitem> 69*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149641" role="listitem" oldref="44">The wildcard for a single character is a period (.).</paragraph> 70*b1cdbd2cSJim Jagielski </listitem> 71*b1cdbd2cSJim Jagielski <listitem> 72*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3153136" role="listitem" oldref="43">The wildcard for zero or more occurrences of the previous character is an asterisk. For example: "123*" finds "12" "123", and "1233".</paragraph> 73*b1cdbd2cSJim Jagielski </listitem> 74*b1cdbd2cSJim Jagielski <listitem> 75*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149609" role="listitem" oldref="45">The wildcard combination to search for zero or more occurrences of any character is a period and asterisk (.*).</paragraph> 76*b1cdbd2cSJim Jagielski </listitem> 77*b1cdbd2cSJim Jagielski <listitem> 78*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149854" role="listitem" l10n="CHG" oldref="46">The wildcard for the end of a paragraph is a dollar sign ($). The wildcard character combination for the start of a paragraph is a caret and a period (^.).</paragraph> 79*b1cdbd2cSJim Jagielski </listitem> 80*b1cdbd2cSJim Jagielski <listitem> 81*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id0509200916345545" role="listitem" l10n="NEW">The wildcard for a tab character is \t.</paragraph> 82*b1cdbd2cSJim Jagielski </listitem> 83*b1cdbd2cSJim Jagielski </list> 84*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3153414" role="note" l10n="CHG" oldref="49">A search using a regular expression will work only within one paragraph. To search using a regular expression in more than one paragraph, do a separate search in each paragraph.</paragraph> 85*b1cdbd2cSJim Jagielski <section id="relatedtopics"> 86*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149875" role="paragraph" l10n="U" oldref="48"><link href="text/shared/01/02100001.xhp" name="List of Wildcards">List of Wildcards</link></paragraph> 87*b1cdbd2cSJim Jagielski </section> 88*b1cdbd2cSJim Jagielski </body> 89*b1cdbd2cSJim Jagielski</helpdocument>