1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*c5ffc49bSmseidel
30e4b25e7SAndrew Rist<!--***********************************************************
4*c5ffc49bSmseidel *
50e4b25e7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
60e4b25e7SAndrew Rist * or more contributor license agreements.  See the NOTICE file
70e4b25e7SAndrew Rist * distributed with this work for additional information
80e4b25e7SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
90e4b25e7SAndrew Rist * to you under the Apache License, Version 2.0 (the
100e4b25e7SAndrew Rist * "License"); you may not use this file except in compliance
110e4b25e7SAndrew Rist * with the License.  You may obtain a copy of the License at
12*c5ffc49bSmseidel *
130e4b25e7SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*c5ffc49bSmseidel *
150e4b25e7SAndrew Rist * Unless required by applicable law or agreed to in writing,
160e4b25e7SAndrew Rist * software distributed under the License is distributed on an
170e4b25e7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
180e4b25e7SAndrew Rist * KIND, either express or implied.  See the License for the
190e4b25e7SAndrew Rist * specific language governing permissions and limitations
200e4b25e7SAndrew Rist * under the License.
21*c5ffc49bSmseidel *
220e4b25e7SAndrew Rist ***********************************************************-->
230e4b25e7SAndrew Rist
24*c5ffc49bSmseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26*c5ffc49bSmseidel<topic id="textswriterguidesearch_regexpxml" indexer="include" status="PUBLISH">
27*c5ffc49bSmseidel<title xml-lang="en-US" id="tit">Using Wildcards in Text Searches</title>
28*c5ffc49bSmseidel<filename>/text/swriter/guide/search_regexp.xhp</filename>
29*c5ffc49bSmseidel</topic>
30*c5ffc49bSmseidel</meta>
31*c5ffc49bSmseidel<body>
32*c5ffc49bSmseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3150099">
33*c5ffc49bSmseidel<bookmark_value>wildcards, see regular expressions</bookmark_value>
34*c5ffc49bSmseidel<bookmark_value>searching; with wildcards</bookmark_value>
35*c5ffc49bSmseidel<bookmark_value>regular expressions;searching</bookmark_value>
36*c5ffc49bSmseidel<bookmark_value>examples for regular expressions</bookmark_value>
37*c5ffc49bSmseidel<bookmark_value>characters;finding all</bookmark_value>
38*c5ffc49bSmseidel<bookmark_value>invisible characters;finding</bookmark_value>
39*c5ffc49bSmseidel<bookmark_value>paragraph marks;searching</bookmark_value>
40cdf0e10cSrcweir</bookmark><comment>mw deleted "wildcards;" and inserted wildcards crossreference</comment><comment>mw added "paragraph marks;"</comment>
41cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3150099" role="heading" level="1" l10n="U"
42*c5ffc49bSmseideloldref="15"><variable id="search_regexp"><link href="text/swriter/guide/search_regexp.xhp">Using Wildcards in Text Searches</link>
43cdf0e10cSrcweir</variable></paragraph>
44*c5ffc49bSmseidel<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>
45*c5ffc49bSmseidel<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>
46*c5ffc49bSmseidel<list type="ordered">
47*c5ffc49bSmseidel<listitem>
48*c5ffc49bSmseidel<paragraph xml-lang="en-US" id="par_id3155907" role="listitem" l10n="U" oldref="40">Choose <item type="menuitem">Edit - Find &amp; Replace</item>.</paragraph>
49*c5ffc49bSmseidel</listitem>
50*c5ffc49bSmseidel<listitem>
51*c5ffc49bSmseidel<paragraph xml-lang="en-US" id="par_id2142399" role="listitem" l10n="NEW">Click <item type="menuitem">More Options</item> to expand the dialog.</paragraph>
52*c5ffc49bSmseidel</listitem>
53*c5ffc49bSmseidel<listitem>
54*c5ffc49bSmseidel<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>
55*c5ffc49bSmseidel</listitem>
56*c5ffc49bSmseidel<listitem>
57*c5ffc49bSmseidel<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>
58*c5ffc49bSmseidel</listitem>
59*c5ffc49bSmseidel<listitem>
60*c5ffc49bSmseidel<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>
61*c5ffc49bSmseidel</listitem>
62*c5ffc49bSmseidel</list>
63*c5ffc49bSmseidel<paragraph xml-lang="en-US" id="hd_id3153401" role="heading" level="2" l10n="U"
64*c5ffc49bSmseideloldref="52">Regular Expression Examples</paragraph>
65*c5ffc49bSmseidel<list type="ordered">
66*c5ffc49bSmseidel<listitem>
67*c5ffc49bSmseidel<paragraph xml-lang="en-US" id="par_id3149641" role="listitem" oldref="44">The wildcard for a single character is a period (.).</paragraph>
68*c5ffc49bSmseidel</listitem>
69*c5ffc49bSmseidel<listitem>
70*c5ffc49bSmseidel<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>
71*c5ffc49bSmseidel</listitem>
72*c5ffc49bSmseidel<listitem>
73*c5ffc49bSmseidel<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>
74*c5ffc49bSmseidel</listitem>
75*c5ffc49bSmseidel<listitem>
76*c5ffc49bSmseidel<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>
77*c5ffc49bSmseidel</listitem>
78*c5ffc49bSmseidel<listitem>
79*c5ffc49bSmseidel<paragraph xml-lang="en-US" id="par_id0509200916345545" role="listitem" l10n="NEW">The wildcard for a tab character is \t.</paragraph>
80*c5ffc49bSmseidel</listitem>
81*c5ffc49bSmseidel</list>
82*c5ffc49bSmseidel<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>
83*c5ffc49bSmseidel<section id="relatedtopics">
84*c5ffc49bSmseidel<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>
85*c5ffc49bSmseidel</section>
86*c5ffc49bSmseidel</body>
87*c5ffc49bSmseidel</helpdocument>
88