diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-04-10 17:12:52 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-04-11 15:01:37 +0200 |
commit | 7d80346111e3945a8ec6cf5bbf5258eb7402d76d (patch) | |
tree | 1977527cd3e52970442d24eb85cf43dde18c05aa /source/text | |
parent | 282bc6b717716b077e95c0e1028ac820c4ea5da2 (diff) |
tdf#118076 Clarify use of regexp in writer search
Writer only supports regex in searches. Wildcards restricted to Calc.
Change-Id: If0ac52672a397832d48754e8221967b7b30b4df6
Reviewed-on: https://gerrit.libreoffice.org/70551
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text')
-rw-r--r-- | source/text/swriter/guide/search_regexp.xhp | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/source/text/swriter/guide/search_regexp.xhp b/source/text/swriter/guide/search_regexp.xhp index 9ccbda171e..c0f4553765 100644 --- a/source/text/swriter/guide/search_regexp.xhp +++ b/source/text/swriter/guide/search_regexp.xhp @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <helpdocument version="1.0"> - + <!-- * This file is part of the LibreOffice project. * @@ -18,27 +18,29 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . --> - - + + <meta> <topic id="textswriterguidesearch_regexpxml" indexer="include" status="PUBLISH"> - <title xml-lang="en-US" id="tit">Using Wildcards in Text Searches</title> + <title xml-lang="en-US" id="tit">Using Regular Expressions in Text Searches</title> <filename>/text/swriter/guide/search_regexp.xhp</filename> </topic> </meta> <body> -<bookmark xml-lang="en-US" branch="index" id="bm_id3150099"><bookmark_value>wildcards, see regular expressions</bookmark_value> - <bookmark_value>searching; with wildcards</bookmark_value> - <bookmark_value>regular expressions;searching</bookmark_value> - <bookmark_value>examples for regular expressions</bookmark_value> - <bookmark_value>characters;finding all</bookmark_value> - <bookmark_value>invisible characters;finding</bookmark_value> - <bookmark_value>paragraph marks;searching</bookmark_value> +<bookmark xml-lang="en-US" branch="index" id="bm_id3150099"> +<bookmark_value>wildcards, see regular expressions</bookmark_value> +<bookmark_value>searching; with regular expressions</bookmark_value> +<bookmark_value>regular expressions;searching</bookmark_value> +<bookmark_value>examples for regular expressions</bookmark_value> +<bookmark_value>characters;finding all</bookmark_value> +<bookmark_value>invisible characters;finding</bookmark_value> +<bookmark_value>paragraph marks;searching</bookmark_value> </bookmark><comment>mw deleted "wildcards;" and inserted wildcards crossreference</comment><comment>mw added "paragraph marks;"</comment> -<paragraph xml-lang="en-US" id="hd_id3150099" role="heading" level="1"><variable id="search_regexp"><link href="text/swriter/guide/search_regexp.xhp">Using Wildcards in Text Searches</link> +<paragraph xml-lang="en-US" id="hd_id3150099" role="heading" level="1"><variable id="search_regexp"><link href="text/swriter/guide/search_regexp.xhp">Using Regular Expressions in Text Searches</link> </variable></paragraph> - <paragraph xml-lang="en-US" id="par_id0509200916345516" role="paragraph">Wildcards or placeholders can be used to search for some unspecified or even invisible characters.</paragraph> - <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> + <paragraph xml-lang="en-US" id="par_id0509200916345516" role="paragraph">Regular expressions can be used to search for some unspecified or even invisible characters.</paragraph> + <note id="par_id421554926388821">Searching with regular expressions is different from searching with wildcards. %PRODUCTNAME Writer only supports searching with regular expressions.</note> + <paragraph xml-lang="en-US" id="par_id3155182" role="paragraph">You can use regular expressions when you find and replace text in a document. For example, "s.n" finds "sun" and "son".</paragraph> <list type="ordered"> <listitem> <paragraph xml-lang="en-US" id="par_id3155907" role="listitem">Choose <item type="menuitem">Edit - Find & Replace</item>.</paragraph> @@ -50,7 +52,7 @@ <paragraph xml-lang="en-US" id="par_id3155861" role="listitem">Select the <item type="menuitem">Regular expressions</item> check box.</paragraph> </listitem> <listitem> - <paragraph xml-lang="en-US" id="par_id3149843" role="listitem">In the <item type="menuitem">Find</item> box, type the search term and the wildcard(s) that you want to use in your search.</paragraph> + <paragraph xml-lang="en-US" id="par_id3149843" role="listitem">In the <item type="menuitem">Find</item> box, type the search term and the regular expression(s) that you want to use in your search.</paragraph> </listitem> <listitem> <paragraph xml-lang="en-US" id="par_id3156113" role="listitem">Click <item type="menuitem">Find Next</item> or <item type="menuitem">Find All</item>.</paragraph> @@ -59,24 +61,24 @@ <paragraph xml-lang="en-US" id="hd_id3153401" role="heading" level="2">Regular Expression Examples</paragraph> <list type="ordered"> <listitem> - <paragraph xml-lang="en-US" id="par_id3149641" role="listitem">The wildcard for a single character is a period (.).</paragraph> + <paragraph xml-lang="en-US" id="par_id3149641" role="listitem">The regular expression for a single character is a period (.).</paragraph> </listitem> <listitem> - <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> + <paragraph xml-lang="en-US" id="par_id3153136" role="listitem">The regular expression for zero or more occurrences of the previous character is an asterisk. For example: "123*" finds "12" "123", and "1233".</paragraph> </listitem> <listitem> - <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> + <paragraph xml-lang="en-US" id="par_id3149609" role="listitem">The regular expression combination to search for zero or more occurrences of any character is a period and asterisk (.*).</paragraph> </listitem> <listitem> - <paragraph xml-lang="en-US" id="par_id3149854" role="listitem">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> + <paragraph xml-lang="en-US" id="par_id3149854" role="listitem">The regular expression for the end of a paragraph is a dollar sign ($). The regular expression character combination for the start of a paragraph is a caret and a period (^.).</paragraph> </listitem> <listitem> - <paragraph xml-lang="en-US" id="par_id0509200916345545" role="listitem">The wildcard for a tab character is \t.</paragraph> + <paragraph xml-lang="en-US" id="par_id0509200916345545" role="listitem">The regular expression for a tab character is \t.</paragraph> </listitem> </list> <paragraph xml-lang="en-US" id="par_id3153414" role="note">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> <section id="relatedtopics"> - <paragraph xml-lang="en-US" id="par_id3149875" role="paragraph"><link href="text/shared/01/02100001.xhp" name="List of Wildcards">List of Wildcards</link></paragraph> + <paragraph xml-lang="en-US" id="par_id3149875" role="paragraph"><link href="text/shared/01/02100001.xhp" name="List of regular expressions">List of regular expressions</link></paragraph> </section> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> |