To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=15666





------- Additional comments from [EMAIL PROTECTED] Tue Jul 17 15:47:27 +0000 
2007 -------
I programmed a replace function in Delphi (I'm sorry to say that I'm absolutely
no good at C++) with a different set of regular expressions or wildcards but
with the possibility to use \1 - \9 in the replace by string to access variable
text in the search string. My very simple system worked like this:
The search and replace methods call a match function that returns true if a
match is found. The match function has a lot of parameters, like the start and
end position of the found text, the search and replace string, and of course a
reference to the string that holds the text you're trying to find the search
string in.
The match function assembles text matching expressions in () in an array of
strings; when a match is found the switches  in the replace string are simply
replaced by the corresponding strings in the array. I didn't include & and \0 -
not having & was an oversight but I'm not sure that \0 is used a lot in word
processors (it's definitely not done in MS Word) and I feel that comparing OO.o
Writer with a (in my humble view) low-level editor like Sed isn't quite 
correct. 

I hope the support of switches in the replace by string will be implemented 
soon. 

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to