[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2008-05-28 Thread gudmund
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] Wed May 28 08:42:05 + 
2008 ---
From the 2.4 help file (node regular expressions;list of):

 or $0Adds the string that was found by the search criteria in the
Search for box to the term in the Replace with box when you make a
replacement. For example, if you enter window in the Search for box
and frame in the Replace with box, the word window is replaced with
windowframe. You can also enter an  in the Replace with box to
modify the Attributes or the Format of the string found by the search
criteria.

^$ Finds an empty paragraph.

But:  or $0 in the Replace box do not insert an empty paragraph mark but
instead the characters  or $0.

Nicely enough,  works for inserting \n (with e. g.  inserting \n\n\n
if only one \n and one \n alone was in the Search box), which indicates
that correct handling of \n (for inserting line breaks (newline)) and
\r (for inserting paragraph breaks) might not be impossible after all.

@SBA: Should this too be viewed as a special case, with an issue of its
own? I thought issue 46165
http://www.openoffice.org/issues/show_bug.cgi?id=46165 was supposed to be some
sort of collector issue for regular expressions in general.

Or should I reopen issue 70554
http://www.openoffice.org/issues/show_bug.cgi?id=70554 as being a special
case/mutating issue?

I can't find a spec template that you've mentioned in issue 46165. Is this 
it?:
http://specs.openoffice.org/  
http://specs.openoffice.org/collaterals/template/2.0/OpenOffice-org-Specification-Template.ott
http://specs.openoffice.org/collaterals/OpenOffice_org_Specification_guide.sxw
http://eis.services.openoffice.org/EIS2/guide.CheckSpecification

If this is the kind of thing it takes, I guess I should file an RFE to the OOo
Bugzilla that such pointers be included in every issue page, Write a
specification template.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2008-05-28 Thread drking
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] Wed May 28 09:28:44 + 
2008 ---
@gudmund
But:  or $0 in the Replace box do not insert an empty paragraph mark 

I think that's how the thing works - you found an empty *paragraph* but tried 
to insert a *paragraph mark*. The Application Help is rather sparse on this 
topic; you might like to read the Wiki:
http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressio
ns_in_Writer
?





-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User sba changed the following:

What|Old value |New value

  CC|'akrioukov,cheyrich,danm,d|'akrioukov,cheyrich,danm,d
|rking,ecastro,er,gudmund,g|rking,ecastro,er,gudmund,g
|urubert,joopb,sashiman,sch|urubert,jes,joopb,sashiman
|aber,st'  |,schaber,st'

  Status|VERIFIED  |CLOSED





--- Additional comments from [EMAIL PROTECTED] Tue May 27 16:33:21 + 
2008 ---
OK in OOo 2.4. Closed.

SBA-jes: To capitalize all words with h, simply replace the h with H :-)
Search for: \h
replace with: H
Match Case and RegEx checked, Click Replace all, works.

But you are right, in this case the sub-expression do not work correctly.
Please file another issue for that one because this issue here was about Sub
expressions GENARALLY working. Mutating issues can not be handled with
feasible effort.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-12-12 Thread jes
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] Wed Dec 12 23:44:59 + 
2007 ---
Hey, this is great! Fantastic job. This will be a big enhancement for OOo's Find
 Replace--thanks for tackling this!

I just ran through a few example tasks that people have asked about. I only
found one glitch:

Capitalize words beginning with h:
s/\h([a-z]+)/
r/H$1/
Match case = Yes

Starting text:   He heard quiet steps behind him.
Expected result: He Heard quiet steps behind Him.
Actual result:   He H$1 quiet steps behind H$1

OOo-Dev SRC680_m239 on Fedora Linux 8

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User joopb changed the following:

What|Old value |New value

  CC|'akrioukov,cheyrich,danm,d|'akrioukov,cheyrich,danm,d
|rking,ecastro,er,gudmund,g|rking,ecastro,er,gudmund,g
|urubert,sashiman,schaber,s|urubert,joopb,sashiman,sch
|t'|aber,st'





-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-26 Thread sba
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] Mon Nov 26 17:07:06 + 
2007 ---
Created an attachment (id=49915)
Test Case


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User sba changed the following:

What|Old value |New value

  Status|RESOLVED  |VERIFIED





--- Additional comments from [EMAIL PROTECTED] Mon Nov 26 17:10:33 + 
2007 ---
SBA: Verified in CWS regexp02.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-25 Thread sashiman
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] Sun Nov 25 10:42:59 + 
2007 ---
Ok, thanks for the info on backreferences.

With regard to styles, I know I can replace one style with another, but what I
would like to be able to do is replace a character style with an XML tag, i.e.
find all that is marked with a user-created style, e.g. author, with
person^/person.  I'll doublecheck to be sure I'm not mistaken, but this
feature does not seem to be available, contrary to in MS Word.  (That said your
HTML is readable, contrary to MS Word, such that I could do the replacement with
a basic text editor (or with Oo) once I've converted to HTML.)  I don't mean to
be hijacking this thread with a separate issue, so my apologies, I just wanted
you to be sure you understood the issue that I was raising.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-25 Thread sashiman
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] Sun Nov 25 14:18:54 + 
2007 ---
In fact, just to make even clearer that this is related to the REGexp issue: 
imagine that one has different heading1 level titles that one wishes to convert
to XML in a TEI type format:  in the other product I would search for 
(Chapter) ([0-9]{1;3})(*)^13 
having the attribute style=heading 1 
and replace with 
div type=\1 n=\2\3/div.
potentially having the default style (of little relevance, as in exporting to
encoded text all styles will be lost, whereas obviously the tags will not.

Working with texts that have different labels for identical level items (or
captions with different labels, for example) is certainly possible when working
with digitized books.  Using a high-level word-processor always non-specialists
(or those who would rather not see all the tags) to work on markup, leaving the
XML conversion to a macro...

In any case, I'm glad to see that these concerns are being taken seriously, the
plans for a major overhaul mentioned elsewhere (in the CRLF discussion) is
superb, and from what I saw from the link the icu project looks like a fantastic
target. Thank you!

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-22 Thread sashiman
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] Thu Nov 22 15:53:28 + 
2007 ---
I have read this thread several times now, and am ecstatic to see that it will
be possible to use back-references as described above.  For the moment however,
I can use back-references in the search box (the palindrome algorithm
described above works perfectly), but the most recent version 2.3.0 does not
seem to have the $n feature incorporated.  Is this going to be integrated in a
future release, or is it just that I have missed some crucial part of the 
syntax?

Thank you for adding this feature! If someday it becomes possible to add style
info to the search and replace boxes, I may be able to stop using MS Word
entirely!  

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User er changed the following:

What|Old value |New value

  CC|'akrioukov,cheyrich,danm,d|'akrioukov,cheyrich,danm,d
|rking,ecastro,er,gudmund,g|rking,ecastro,er,gudmund,g
|urubert,schaber,st'   |urubert,sashiman,schaber,s
|  |t'





--- Additional comments from [EMAIL PROTECTED] Thu Nov 22 19:02:57 + 
2007 ---
@sashiman: Please see the issue's target that reads OOo2.4, so the change most
certainly is not available in OOo2.3 ...

 If someday it becomes possible to add style info to the search and replace 
 boxes

If you used styles it was always possible to search for and replace with styles,
see the More Options button and Search for Styles. If you used hard
formatting attributes instead then see More Options and the Attributes...
and Format... buttons.


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-14 Thread ama
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] Wed Nov 14 09:42:18 + 
2007 ---
ama-glebovitz: The current implementation will support $n, not \n. See comment
from er (Nov 10) about the reason for choosing $n.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-10 Thread er
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] Sat Nov 10 10:58:07 + 
2007 ---
@drking: $n was chosen because later at some point we will switch to the ICU
regex engine that also knows this syntax, see
http://www.icu-project.org/userguide/regexp.html for a complete reference. The
$n is also what perl users are acquainted with. And no, $n in search is not
supported, that would conflict with $ being the end-of-text anchor.


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-10 Thread gudmund
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] Sat Nov 10 11:43:46 + 
2007 ---
Please pardon my ignorance as a layman. Does the Resolved and FIXED in this
issue mean that the issues in bugs
http://www.openoffice.org/issues/show_bug.cgi?id=46165 and
http://www.openoffice.org/issues/show_bug.cgi?id=70554 are also covered and 
fixed?

In short: will an ordinary user be able to
- search and find line breaks, any kind
- search and find paragraph breaks, any kind
- substitute any of the above, be it one or many with one or many of any
combination of the above?

There is a whole lot of translators and other users waiting for this good news,
since these bugs make it impossible for us to use Openoffice as anything much
more than an (resource heavy) auxiliary for petty tasks.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-10 Thread glebovitz
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] Sat Nov 10 16:46:52 + 
2007 ---
Question to AMA,

When Christian implemented the regex substitution code, he supported both the $n
and \n syntax. Did this change in the final version? I was looking at the regex
specification document above and it only mentions the $n syntax.

It doesn't make that much difference to me, but outside of perl, most regex
packages seem to support the \n syntax, including MS office.

Gregg


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-10 Thread drking
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] Sat Nov 10 18:35:50 + 
2007 ---
@er
Thank you - that will be useful when explaining the rationale. 

@gudmund
There are close to 40 issues about regex, and they're all treated separately, 
so no - I'm afraid the other issues you mention are not fixed. The good news is 
that if OOo migrates to the ICU regex engine, many of the existing issues may 
be resolved at a stroke. Although (looking at the ICU regex spec) probably not 
all of them.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-11-09 Thread ama
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] Fri Nov  9 08:01:29 + 
2007 ---
Any volunteers for doing the specification?
We have a first draft at 

http://specs.openoffice.org/appwide/find_and_replace/Regular_Expressions.odt

In CWS regexp02 the backwards references are already implemented (with $0 - $9)
for Writer and Calc

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User ama changed the following:

What|Old value |New value

  Status|STARTED   |RESOLVED

  Resolution|  |FIXED





--- Additional comments from [EMAIL PROTECTED] Fri Nov  9 16:22:30 + 
2007 ---
Fixed in CWS regexp02.

Only the specification needs a little bit improvement ;-)

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User ama changed the following:

What|Old value |New value

 Assigned to|ama   |sba





--- Additional comments from [EMAIL PROTECTED] Fri Nov  9 16:23:23 + 
2007 ---
Ready for QA.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User drking changed the following:

What|Old value |New value

  CC|'akrioukov,cheyrich,danm,e|'akrioukov,cheyrich,danm,d
|castro,er,gudmund,gurubert|rking,ecastro,er,gudmund,g
|,schaber,st'  |urubert,schaber,st'





--- Additional comments from [EMAIL PROTECTED] Sat Nov 10 07:30:41 + 
2007 ---
 Any volunteers for doing the specification?

It looks as if this needs someone who has done one before, and knows what is 
required.

btw note that the 3rd example on page 4 (Detail Spec) should be ([1-9]+) not 
([1-9]).

I'll volunteer to update the wiki regex HowTo, unless someone beats me to it.

But I am very puzzled why $1 - $9 has been chosen, rather than /1 - /9 as in 
the Search For box. In the HowTo this is going to look silly - along the lines 
of, well when you want a backref in the Search For you use /1 but in the 
Replace with box 

Could someone enlighten me if there's a good reason? Or will $1 - $9 now work 
in the Search For box as well?

Not knocking the effort - it's a good step forward. Thank you.


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User ama changed the following:

What|Old value |New value

Target milestone|OOo 2.x   |OOo 2.4





--- Additional comments from [EMAIL PROTECTED] Thu Nov  1 12:26:02 + 
2007 ---
I will integrate some improvements for regular expressions into OOo2.4.
CWS regexp02 is on its way.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User st changed the following:

What|Old value |New value

  CC|'akrioukov,cheyrich,danm,e|'akrioukov,cheyrich,danm,e
|castro,er,gudmund,gurubert|castro,er,gudmund,gurubert
|,schaber' |,schaber,st'

  Issue type|ENHANCEMENT   |PATCH

Target milestone|OOo Later |not determined





--- Additional comments from [EMAIL PROTECTED] Mon Jul 23 10:27:48 + 
2007 ---
It looks like the target should be reconsidered; setting type to patch.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User ama changed the following:

What|Old value |New value

Target milestone|not determined|OOo 2.x





--- Additional comments from [EMAIL PROTECTED] Mon Jul 23 10:37:40 + 
2007 ---
Yes, I created already a CWS regexp01 for this, but did not find the time for
OOo2.3. My planning is to improve our regular expression support in one of the
next versions, hopefully 2.4.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-07-23 Thread er
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] Mon Jul 23 11:12:20 + 
2007 ---
Andreas, please consider my comments in #desc55 from Mon Aug 14 10:43:40 +
2006 and rework the patch accordingly.

Thanks
  Eike

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-07-17 Thread floris_v
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 + 
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-04-11 Thread cloph
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] Wed Apr 11 11:32:30 + 
2007 ---
*** Issue 76188 has been marked as a duplicate of this issue. ***

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-03-05 Thread ama
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] Mon Mar  5 12:19:22 + 
2007 ---
I will set up a CWS for this patch and we will see, how far we'll get. Stay 
tuned!

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2007-03-03 Thread schaber
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] Sat Mar  3 11:27:17 + 
2007 ---
Could you please integrate the patch into the product? You can make improvements
at any time, but meanwhile it would be great to have the functionality in the
product, even if it is only available in the Writer module.

80 votes so far!

Best regards,

   Gerhard


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User schaber changed the following:

What|Old value |New value

  CC|'akrioukov,cheyrich,danm,e|'akrioukov,cheyrich,danm,e
|castro,er,gudmund,gurubert|castro,er,gudmund,gurubert
|' |,schaber'





-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-12-08 Thread cbrunet
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] Fri Dec  8 08:57:34 -0800 
2006 ---
What is happening with that issue? When will it be integrated? 73 votes...
Shouldn't a target be set? 2.2?

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-12-08 Thread cheyrich
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] Fri Dec  8 11:15:34 -0800 
2006 ---
Getting this in would be great.
I understand the requests for availability of the functionality to all parts OOo
but that's too deep for me. So if not someone at least can point me in the right
directions this will be open for another three years I fear.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-11-09 Thread sba
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] Thu Nov  9 06:18:47 -0800 
2006 ---
*** Issue 25177 has been marked as a duplicate of this issue. ***

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

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


User gudmund changed the following:

What|Old value |New value

  CC|'akrioukov,cheyrich,danm,e|'akrioukov,cheyrich,danm,e
|castro,er,gurubert'   |castro,er,gudmund,gurubert
|  |'





-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-09-22 Thread cheyrich
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] Fri Sep 22 04:52:09 -0700 
2006 ---
 Shouldn't the functionality of textsearch (and textreplace) be integrated into
 the base string class? Seems to me that strings

Having methods for search and various manipulations in string classes seems
reasonably to me. OOo's UniString and ByteString look already quite rich equiped
with methods. And maybe having a regex version of their SearchAndReplace()
method would be good. But that's neither what I want to do nor what I can do.

Searching through a whole document and replacing matches it's different from
just searching through a string only. Either that or those who implemented the
currenct SR were insane. At least for me it's just a mess in which I was
finally able to find the right point to insert my code.

That just to inform you what you can expect from me (resp. what not).

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-09-21 Thread cheyrich
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] Thu Sep 21 10:45:08 -0700 
2006 ---
I'm currently in the phase of reorientate myself in the code. I hope I can
realise the proposed changes soon.

 we should offer the replacement functionality of
 ActualStrReplace() at a more common place, i.e. the
 utl::TextSearch wrapper.

Making it globally available is ok for me. But I don't know if a class named
TextSearch should contain a method that replaces. Not that I want to create
another class TextReplace or so, but maybe there's a more fitting already in
existance. However, if someone who's deeper in the system than me says I should
put it in TextSearch, I'll do that.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-09-21 Thread glebovitz
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] Thu Sep 21 12:08:19 -0700 
2006 ---
Christian,

Shouldn't the functionality of textsearch (and textreplace) be integrated into
the base string class? Seems to me that strings, in an editor, should be self
searching and self replacing? The QString class in Qt 4 supports search and
replace. This makes the class very useful.

Gregg


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-31 Thread glebovitz
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] Thu Aug 31 06:31:06 -0700 
2006 ---
Christian,

I helps to click on the correct link before making comments *blush*. I WAS
looking at the version 2 document.

Looks really good.

Gregg


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-30 Thread glebovitz
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] Wed Aug 30 13:42:15 -0700 
2006 ---
@cloph

Good points.

An important issue in changing the behavior of \0 to all matching groups is that
Christian implemented  by converting it to a \0 on the input buffer and then
expanding it to the entire match string in the output buffer. Therefore
providing for different behaviors between  and \0 is a large coding change.

I suggest we keep the behavior as proposed by Christian.


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-30 Thread cheyrich
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] Wed Aug 30 16:04:57 -0700 
2006 ---
 An important issue in changing the behavior of \0 to all matching groups is 
 that
 Christian implemented  by converting it to a \0 on the input buffer

Er, did I? Oh, yes, but that was in version 2, in version 3 it's different since
I had found SearchChar() in the meantime.
But I nevertheless prefer keeping the behaviour of version 3 ( == \0). Mainly
because the regex lib delivers \0 that way.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-29 Thread cloph
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 Aug 29 14:39:51 -0700 
2006 ---
Well - \0 for all matching groups just seemed to be more logical to me. (again
remember that this is for the replace-box, not for the search). We already have
a common character to match the whole string () - so having one for all groups
seemed logical (simply \0 instead of writing \1\2\3\4)

Also note that many of the other regex implementations cannot use \0 since that
is often used to specify a character by its octal code - but OOo uses hex values
instead (\x) - so this wouldn't collide.

All in all I don't have a strong opiontion about it. If you decide to make \0
behave like , I won't complain

But keep the . Even if it would not be common in regex (it is very common), it
still would be an expression that used to be available in OOo (and its
predecessor) for years. Removing it would be a regression.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-22 Thread er
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 Aug 22 06:12:32 -0700 
2006 ---
AFAIK there is no standardized specification for \0. However, quite a few
implementations use that extension, e.g. GNU sed and, as I've read, the .NET
framework. Btw, IEEE Std 1003.1, 2004 Edition, also does not define the ''
ampersand for backreference. See
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-22 Thread aexl
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 Aug 22 07:41:05 -0700 
2006 ---
I would be happy to get rid of the .
I'm not used to treat it as a special character.

For many characters (like backslash and all kinds of brackets eg) i have the
intuitive feeling of oh, this might be a special character, so i better escape
it..., but OOo is the only place i know where  has a special meaning so i
would never have the idea to escape it...


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-22 Thread noise_e_piranha
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 Aug 22 08:33:27 -0700 
2006 ---
I've been using vi for 21 years and ALAICR  has had a special meaning.  I
use it all the time in regular expressions and would feel the functionality is
missing if it were removed.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-22 Thread glebovitz
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 Aug 22 08:57:49 -0700 
2006 ---
I may be missing something, but the IEEE document that er posted specifies the
regular expression for regexec and regcomp only, and does not specify the syntax
for replace. Back references in this document appears to discuss references in
the match pattern only.

IMHO, We've already had this discussion and decided that implementing a replace
without an '' does not follow convention. Since there is no dispute over the
definition of '' in the replace string, I believe we should not be trying to
change this behavior.

Here is the behavior of Perl, PHP, and sed using the '' and '\0' substitution
patters for the string 123 ABC DEF GHI:

perl - 's/123 (AB). (DE). (GH)./$'   - '123 ABC DEF GHI'
perl - 's/123 (AB). (DE). (GH)./$0'   - '_'

sed  - 's/123 \(AB\). \(DE\). \(GH\)./'  - '123 ABC DEF GHI'
sed  - 's/123 \(AB\). \(DE\). \(GH\)./\0' - '123 ABC DEF GHI'

php  - 's/123 (AB). (DE). (GH).//'   - ''
php  -) 's/123 (AB). (DE). (GH)./\0/'  - '123 ABC DEF GHI'

Note: while php and sed support the '\0' behavior, perl does not support '$0'.

Only Microsoft replaces '\0' with all the matched subgroups.

This creates a dilemma since Microsoft users expect one behavior and the open
source world expects another. 

The best of all worlds would support two syntaxes and allow the user to select
between them. I can see having a replace check box option labeled use Microsoft
replace that would change the behavior to use the complete Microsoft syntax.

For the time being, I suggest that we try to stick with GNU sed, Perl, and PHP
and support both '' and '\0' for whole string replace and revisit Microsoft
compatibility at a later date.


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-21 Thread cloph
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] Mon Aug 21 13:42:11 -0700 
2006 ---
@cheyrich:
heavy documentation in the code is not bad! er just wanted to say that new
comments should be written in english, not german (so that all devs can
understand them)

@all:

IMHO the following is how it *should* be:

..in replacement boxdoes this..
   inserts complete string that matched (as it does now)
\1  inserts group number one - the match enclosed in the 
first pair of matching (round) parentheses
\2 \#   inserts the second and #th matching group
\0  inserts all matching groups

\n  inserts a newline (linebreak - as inserted with
shift+enter in normal text)
\r  inserts a paragraph break
\t  inserts a tabulator
\x  inserts the character matching the hex-code 
\c  where c is not one of [0-9nrtx] inserts the character c 
(*)
\\  inserts a backslash

(*) the list may not be exclusive, depending on what other escape-sequences are
added - maybe to insert a non-breaking hyphen/space

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-21 Thread cheyrich
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] Mon Aug 21 15:57:28 -0700 
2006 ---
 er just wanted to say that new comments should be written in english,

When continuing work, I'll translate all comments.

 \0  inserts all matching groups

I guess there are different opinions on how it *should* work. As I wrote
earlier, I know \0 to work like , i.e. contain the complete string. That's how
PHP's ereg* and preg* functions as well as - and that's the main reason it works
as it does - FSF's GNU regular expression library, which OO uses, work.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-21 Thread glebovitz
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] Mon Aug 21 18:34:05 -0700 
2006 ---
Where does the functionality for \0 = all match groups specified? POSIX? Gnu?
If there is a conflict over expected function, then we should probably follow
the standards.

Gregg


-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-14 Thread er
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] Mon Aug 14 03:43:40 -0700 
2006 ---
Andreas, Christian,

I took a short glance at this patch, it looks viable in general (apart from
German comments in new code, hey, we should stop that ;-)

However, as regexp searchreplace is also used by Calc, we should offer the
replacement functionality of ActualStrReplace() at a more common place, i.e. the
utl::TextSearch wrapper. The method (name? RegexReplace?) should take parameters
util::SearchResult, original string and replacement string. It should return a
value indicating whether all replacements were done, errors occured, e.g. more
backreferences than search groups, or result string overflows. Maybe a sequence
of the length of the number of backreferences to be able point to the place of
error. Just a quick thought.

  Eike

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-14 Thread rnhainsworth
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] Mon Aug 14 03:50:52 -0700 
2006 ---
It would be good to have a summary of the RegEx behaviour, viz., what is
replaced by what.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-14 Thread cheyrich
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] Mon Aug 14 05:10:52 -0700 
2006 ---
Eike

 I took a short glance at this patch, it looks viable in general (apart from
 German comments in new code, hey, we should stop that ;-)

First it's easier for me to write in German and second I used it because
comments in that function already where in this language. But yes, though most
of my comments aren't really necessary (I always prefer commenting to much than
to less) I can change that if you want.

 However, as regexp searchreplace is also used by Calc, we should offer the
 replacement functionality of ActualStrReplace() at a more common place, i.e.
 the utl::TextSearch wrapper. [...]

I'll try addressing this ASAP. But because I'm still a OOo-coding-newbie I can't
guarantee *if* and I'm in a transition to another OS on my computer I can't tell
*when*.

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-14 Thread rnhainsworth
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] Mon Aug 14 06:14:18 -0700 
2006 ---
Sorry, my previous request (below) was too short to be meaningful.

Since there are a number of RegEx behaviours, it would be useful to have a
summary of the way the current Search and Replace patch is supposed to work.
(viz., the  replacement).

It would be good to have a summary of the RegEx behaviour, viz., what is
replaced by what. 

-
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]



[sw-issues] [Issue 15666] Search and Replace - can't substitute regular expression subexpression i n replace

2006-08-11 Thread olo
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] Fri Aug 11 14:30:25 -0700 
2006 ---
So, will this patch get accepted to the OO code tree?

-
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]