To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78855
                 Issue #|78855
                 Summary|Search regular expression with "[" and "]"
               Component|api
                 Version|1.0.0
                Platform|PC
                     URL|
              OS/Version|Windows 2000
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|cellma





------- Additional comments from [EMAIL PROTECTED] Mon Jun 25 12:18:59 +0000 
2007 -------
I think there is a problem with a regular expression search. I search all words 
between "[" and "]" in a textDocument. Thus, my regular expression is "\[[^\[]
*\]". With GUI version the find function is Ok. But when I try to use the API, 
it do not work correctly. I think that OO finds all words, because if I have 5 
words between "[" and "]", OO gives me 5 TextRange in the result. but when i 
try to get the text with getString() methode, OO alwas gives me "]". If try the 
same search with word between "@" ( with "@[EMAIL PROTECTED]@" regular 
expression), OO 
finds all results and when I use the getString() methode it gives me the good 
word.

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