merge the formfield patch from ooo-build
[ooovba.git] / helpcontent2 / source / text / swriter / guide / search_regexp.xhp
blob5d1d14e71c6b4f4713d2fac9e4a567f0d5779dee
1 <?xml version="1.0" encoding="UTF-8"?>
2 <helpdocument version="1.0">
4 <!--
5 ***********************************************************************
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 *
9 * Copyright 2008 by Sun Microsystems, Inc.
11 * OpenOffice.org - a multi-platform office productivity suite
13 * $RCSfile: soffice2xmlhelp.xsl,v $
14 * $Revision: 1.10 $
16 * This file is part of OpenOffice.org.
18 * OpenOffice.org is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License version 3
20 * only, as published by the Free Software Foundation.
22 * OpenOffice.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License version 3 for more details
26 * (a copy is included in the LICENSE file that accompanied this code).
28 * You should have received a copy of the GNU Lesser General Public License
29 * version 3 along with OpenOffice.org. If not, see
30 * <http://www.openoffice.org/license.html>
31 * for a copy of the LGPLv3 License.
33 ************************************************************************
34 -->
37 <meta>
38 <topic id="textswriterguidesearch_regexpxml" indexer="include" status="PUBLISH">
39 <title xml-lang="en-US" id="tit">Using Wildcards in Text Searches</title>
40 <filename>/text/swriter/guide/search_regexp.xhp</filename>
41 </topic>
42 </meta>
43 <body>
44 <bookmark xml-lang="en-US" branch="index" id="bm_id3150099"><bookmark_value>wildcards, see regular expressions</bookmark_value>
45 <bookmark_value>searching; with wildcards</bookmark_value>
46 <bookmark_value>regular expressions;searching</bookmark_value>
47 <bookmark_value>examples for regular expressions</bookmark_value>
48 <bookmark_value>characters;finding all</bookmark_value>
49 <bookmark_value>invisible characters;finding</bookmark_value>
50 </bookmark><comment>mw deleted "wildcards;" and inserted wildcards crossreference</comment>
51 <paragraph xml-lang="en-US" id="hd_id3150099" role="heading" level="1" l10n="U"
52 oldref="15"><variable id="search_regexp"><link href="text/swriter/guide/search_regexp.xhp">Using Wildcards in Text Searches</link>
53 </variable></paragraph>
54 <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>
55 <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>
56 <list type="ordered">
57 <listitem>
58 <paragraph xml-lang="en-US" id="par_id3155907" role="listitem" l10n="U" oldref="40">Choose <item type="menuitem">Edit - Find &amp; Replace</item>.</paragraph>
59 </listitem>
60 <listitem>
61 <paragraph xml-lang="en-US" id="par_id2142399" role="listitem" l10n="NEW">Click <item type="menuitem">More Options</item> to expand the dialog.</paragraph>
62 </listitem>
63 <listitem>
64 <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>
65 </listitem>
66 <listitem>
67 <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>
68 </listitem>
69 <listitem>
70 <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>
71 </listitem>
72 </list>
73 <paragraph xml-lang="en-US" id="hd_id3153401" role="heading" level="2" l10n="U"
74 oldref="52">Regular Expression Examples</paragraph>
75 <list type="ordered">
76 <listitem>
77 <paragraph xml-lang="en-US" id="par_id3149641" role="listitem" oldref="44">The wildcard for a single character is a period (.).</paragraph>
78 </listitem>
79 <listitem>
80 <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>
81 </listitem>
82 <listitem>
83 <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>
84 </listitem>
85 <listitem>
86 <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>
87 </listitem>
88 <listitem>
89 <paragraph xml-lang="en-US" id="par_id0509200916345545" role="listitem" l10n="NEW">The wildcard for a tab character is \t.</paragraph>
90 </listitem>
91 </list>
92 <paragraph xml-lang="en-US" id="par_id3153414" role="note" l10n="CHG" oldref="49">You can only search for regular expressions within the same paragraph. That is, you cannot search for one term in a paragraph and a different term in the next paragraph.</paragraph>
93 <section id="relatedtopics">
94 <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>
95 </section>
96 </body>
97 </helpdocument>