xref: /AOO42X/main/helpcontent2/source/text/swriter/guide/search_regexp.xhp (revision 7e5ed1f99bdbd3290c9b9799e27945c38e66f8d8)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
30e4b25e7SAndrew Rist<!--***********************************************************
4cdf0e10cSrcweir *
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
12cdf0e10cSrcweir *
130e4b25e7SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14cdf0e10cSrcweir *
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.
21cdf0e10cSrcweir *
220e4b25e7SAndrew Rist ***********************************************************-->
230e4b25e7SAndrew Rist
24e91968a5Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textswriterguidesearch_regexpxml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">Using Wildcards in Text Searches</title>
28cdf0e10cSrcweir<filename>/text/swriter/guide/search_regexp.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
32e91968a5Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3150099">
33e91968a5Smseidel<bookmark_value>wildcards, see regular expressions</bookmark_value>
34cdf0e10cSrcweir<bookmark_value>searching; with wildcards</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>regular expressions;searching</bookmark_value>
36cdf0e10cSrcweir<bookmark_value>examples for regular expressions</bookmark_value>
37cdf0e10cSrcweir<bookmark_value>characters;finding all</bookmark_value>
38cdf0e10cSrcweir<bookmark_value>invisible characters;finding</bookmark_value>
39cdf0e10cSrcweir<bookmark_value>paragraph marks;searching</bookmark_value>
40cdf0e10cSrcweir</bookmark><comment>mw deleted "wildcards;" and inserted wildcards crossreference</comment><comment>mw added "paragraph marks;"</comment>
41*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="hd_id3150099" role="heading" level="1" l10n="U"><variable id="search_regexp"><link href="text/swriter/guide/search_regexp.xhp">Using Wildcards in Text Searches</link>
42cdf0e10cSrcweir</variable></paragraph>
43cdf0e10cSrcweir<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>
44*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3155182" role="paragraph">You can use wildcards when you find and replace text in a document. For example, "s.n" finds "sun" and "son".</paragraph>
45cdf0e10cSrcweir<list type="ordered">
46cdf0e10cSrcweir<listitem>
47*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3155907" role="listitem" l10n="U">Choose <item type="menuitem">Edit - Find &amp; Replace</item>.</paragraph>
48cdf0e10cSrcweir</listitem>
49cdf0e10cSrcweir<listitem>
50cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id2142399" role="listitem" l10n="NEW">Click <item type="menuitem">More Options</item> to expand the dialog.</paragraph>
51cdf0e10cSrcweir</listitem>
52cdf0e10cSrcweir<listitem>
53*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3155861" role="listitem" l10n="U">Select the <item type="menuitem">Regular expressions</item> check box.</paragraph>
54cdf0e10cSrcweir</listitem>
55cdf0e10cSrcweir<listitem>
56*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3149843" role="listitem" l10n="U">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>
57cdf0e10cSrcweir</listitem>
58cdf0e10cSrcweir<listitem>
59*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3156113" role="listitem" l10n="U">Click <item type="menuitem">Find</item> or <item type="menuitem">Find All</item>.</paragraph>
60cdf0e10cSrcweir</listitem>
61cdf0e10cSrcweir</list>
62*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="hd_id3153401" role="heading" level="2" l10n="U">Regular Expression Examples</paragraph>
63cdf0e10cSrcweir<list type="ordered">
64cdf0e10cSrcweir<listitem>
65*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3149641" role="listitem">The wildcard for a single character is a period (.).</paragraph>
66cdf0e10cSrcweir</listitem>
67cdf0e10cSrcweir<listitem>
68*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3153136" role="listitem">The wildcard for zero or more occurrences of the previous character is an asterisk. For example: "123*" finds "12" "123", and "1233".</paragraph>
69cdf0e10cSrcweir</listitem>
70cdf0e10cSrcweir<listitem>
71*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3149609" role="listitem">The wildcard combination to search for zero or more occurrences of any character is a period and asterisk (.*).</paragraph>
72cdf0e10cSrcweir</listitem>
73cdf0e10cSrcweir<listitem>
74*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3149854" role="listitem" l10n="CHG">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>
75cdf0e10cSrcweir</listitem>
76cdf0e10cSrcweir<listitem>
77cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0509200916345545" role="listitem" l10n="NEW">The wildcard for a tab character is \t.</paragraph>
78cdf0e10cSrcweir</listitem>
79cdf0e10cSrcweir</list>
80*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3153414" role="note" l10n="CHG">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>
81cdf0e10cSrcweir<section id="relatedtopics">
82*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3149875" role="paragraph" l10n="U"><link href="text/shared/01/02100001.xhp" name="List of Wildcards">List of Wildcards</link></paragraph>
83cdf0e10cSrcweir</section>
84cdf0e10cSrcweir</body>
85cdf0e10cSrcweir</helpdocument>
86