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