To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=78855
------- Additional comments from [EMAIL PROTECTED] Wed Aug 1 14:11:48 +0000 2007 ------- String expression = "\[[^\[] *\]"; // "@[EMAIL PROTECTED]@" XReplaceable xReplaceable = UnoRuntime.queryInterface(XReplaceable.class, mxDoc); XReplaceDescriptor xRepDesc = xReplaceable.createReplaceDescriptor(); xRepDesc.setSearchString(expression); xRepDesc.setPropertyValue("SearchRegularExpression", new Boolean(true)); XIndexAcess resListe = xReplaceable.findAll(xRepDesc); ArrayList xTextRangeListe = new ArrayList(); for(i=0;i<resListe.getCount();i++){ XtextRange xTextRange = UnoRuntime.queryInterface (XTextRange.class,resListe.getByIndex(i)); String val = xTextRange.getString(); //always equals to "[" xTextRangeListe.add(xTextRange); } --------------------------------------------------------------------- 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]