https://bugs.documentfoundation.org/show_bug.cgi?id=152511

            Bug ID: 152511
           Summary: REGEXP replace parameters not working
           Product: LibreOffice
           Version: 7.4.3.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: raj...@atmadharma.com

Description:
Search string is (With Regular Expresson set ON):-
“((\s)|(^))(that)((\s)|([.,!?:;'\"\'-]))”
Replace string is: “$1not$3"

Text is:- 
that this and that this and that ok 

result should be:- 
not this and not this and not ok

but result is:-
notthatthis and notthatthis and notthatok 

Steps to Reproduce:
1.Enter following text in writer: "that this and that this and that ok "
2.In Search & Replace-->Search string is (With Regular Expresson set ON):-
“((\s)|(^))(that)((\s)|([.,!?:;'\"\'-]))”
3.Replace string is: “$1not$3"
4.result should be:- 
"not this and not this and not ok "
5.but result is:-
"notthis and notthis and notok " (using safe mode)

Actual Results:
"notthis and notthis and notok "

Expected Results:
"not this and not this and not ok "


Reproducible: Always


User Profile Reset: No

Additional Info:
This is happening all the time when more than 1 parameter in replace text is
used ... e.g. $1$3.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to