summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2020-01-23 15:37:23 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2020-01-23 15:46:17 +0100
commit53f7dc371b1483a61b802e8bf57817390ffa271c (patch)
treea847b7c5c56ecf01d68b075aa93d994ba7e63882 /source
parent212f6e88fcee903c3d21db18e87d55df0e1c7bb0 (diff)
Rework sentence for Regex Help page.
Change-Id: I8d550d4153b3fc75132458b100b573047e0c8676 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87278 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source')
-rw-r--r--source/text/shared/01/02100001.xhp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/text/shared/01/02100001.xhp b/source/text/shared/01/02100001.xhp
index 71ecb3d011..48b5e168b4 100644
--- a/source/text/shared/01/02100001.xhp
+++ b/source/text/shared/01/02100001.xhp
@@ -243,7 +243,7 @@
<paragraph id="par_id891559576747109" role="listitem">To group terms in a complex expression to be operated on by the post-fix operators: "*", "+" and "?" along with the post-fix repetition operators. For example, the regular expression "a(bc)?d" matches both "ad" and "abcd" in a search.; the regular expression "M(iss){2}ippi" matches "Mississippi".</paragraph>
</listitem>
<listitem>
- <paragraph id="par_id801559576780692" role="listitem">To record the matched sub string inside the parentheses as a reference for later use in the <widget>Find</widget> box using the "\n" construct or in the <widget>Replace</widget> box using the "$n" construct, where the reference to the first matched sub string in the current expression is represented by "\1" in the <widget>Find</widget> box and by "$1" in the <widget>Replace</widget> box, the reference to the second matched sub string by "\2" and "$2" respectively, and so on.</paragraph>
+ <paragraph id="par_id801559576780692" role="listitem">To record the matched sub string inside the parentheses as a reference for later use in the <widget>Find</widget> box using the "\n" construct or in the <widget>Replace</widget> box using the "$n" construct. The reference to the first match is represented by "\1" in the <widget>Find</widget> box and by "$1" in the <widget>Replace</widget> box. The reference to the second matched sub string by "\2" and "$2" respectively, and so on.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id951559576846997">For example, the regular expression "(890)7\1\1" matches "8907890890".</paragraph>