Regex, access to backreference using a macro

Does searching with regular expressions with a macro that uses xSearchDescriptor allow, in each instance found, to access the substrings associated with any backreferences (group 1, 2, etc.)?

It is certainly possible to do this with a second search performed on each instance found using xTextSearch, but it seems to me a repetition, even if only on a portion of text already filtered, of something that should already have been identified by the first search with xSearchDescriptor

Unfortunately not (or not that I’m aware of). The com.sun.star.util.XSearchable find…() functions’ interfaces returned lack the com.sun.star.util.SearchResult context of the com.sun.star.util.XTextSearch interface (or com.sun.star.util.XTextSearch2 fwiw).

I had come to the same conclusion, but I wanted a confirmation. The first search with xSearchDescriptor will be used to limit the text to be reworked, and then with xTextSearch the strings found will have to be reworked. Thank you very much