To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=97606
                 Issue #|97606
                 Summary|regular expression not working in "replacement" field 
                        |of BASIC code editor
               Component|scripting
                 Version|OOo 3.0
                Platform|PC
                     URL|
              OS/Version|Windows Vista
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|kr
             Reported by|pierre13fr





------- Additional comments from pierre1...@openoffice.org Sat Dec 27 22:27:00 
+0000 2008 -------
When trying to replace a string by another, using the regular expression
feature, in the BASIC CODE editor, it is IMPOSSIBLE to use matching variables $1
nor $0 nor & in the "Replace by" field.
Everything you type in the "replace by field" is taken as LITERAL and is not
interpreted as a regex.
Example :
I tried to set up a "comment out a block of basic code lines" search&replace
command by just adding a quote at the beginning of each line of a block of
lines, so :
search for : ^(.*)$
replace by : '&  
Check "selection only" and "regular expression" boxes.
Replace all => lines of the selection are all replaced by the two cars '& !
Other tests with $0 instead of & : same result; the regexp in "replace by" is
NOT interpreted but taken as a literal expression.
Same result with $1 instead of &.

ALL THIS REGEXP SUBSTITUTIONS WORK WITH "WRITER" search&replace feature, but NOT
with BASIC editor.

IMPORTANT NOTE : replacing just ^ by ' (single quote) DOES NOT WORK NOR IN oo
Basic Editor NEITHER in "Writer". That leads to "string not found" error message
(ie "terme recherché introuvable" in my french localized version of oo 3.0).

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@script.openoffice.org
For additional commands, e-mail: issues-h...@script.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to