Issue 77392 - Ampersand (&) does not work in OOo BASIC editor's Find And Replace
Summary: Ampersand (&) does not work in OOo BASIC editor's Find And Replace
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 2.2
Hardware: PC All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2007-05-15 13:18 UTC by hba
Modified: 2017-05-20 10:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
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 "".