Issue 77392

Summary: Ampersand (&) does not work in OOo BASIC editor's Find And Replace
Product: General Reporter: hba <biczoa>
Component: uiAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 2.2   
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description hba 2007-05-15 13:18:29 UTC
OOo Basic macro editor's Find and Replace cannot do what Writer's F&R can!

1) Open the OOo Basic editor with a new module
2) Open the Find & Replace dialog
3) Try the following replace with Regular expressions checked:
   Search for: Main
   Replace with: &2
4) Main is changed to &2 instead of Main2

Workaround (use at your own risk):
1) Move the code to OOo Writer
2) Do your replaces using the Find and Replace dialog of OOo Writer
3) Move the code back to OOo Basic

(See also Issue 15666 for enhancing Find and Replace using Regular Expressions
in Writer.)
Comment 1 thorsten.martens 2007-05-16 08:30:01 UTC
TM->JSK: one for you !
Comment 2 joerg.skottke 2007-05-16 08:57:31 UTC

However, a simple 
 Search: main
 Replace: main2
will do the same (in this case).

Forwarding to AB, setting target to 2.4, switching OS to all. 
Comment 3 hba 2007-05-16 11:08:30 UTC
Pls don't expect usefulness from a stripped down example :-)
See Issue 77338 (under "Quick fix") for a real life problem.
Comment 4 ab 2007-05-29 09:17:03 UTC
Comment 5 ab 2007-11-14 14:51:47 UTC
Not enough time left for fixing this in 2.4 -> 3.x
Comment 6 Marcus 2017-05-20 10:55:26 UTC
Reset assigne to the default "".