Ask Your Question

Regex, access to backreference using a macro

asked 2019-11-15 14:36:28 +0200

torreone gravatar image

updated 2019-11-15 14:42:26 +0200

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

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-11-15 15:51:17 +0200

erAck gravatar image

Unfortunately not (or not that I'm aware of). The find...() functions' interfaces returned lack the context of the interface (or fwiw).

edit flag offensive delete link more


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

torreone gravatar imagetorreone ( 2019-11-15 16:30:17 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-15 14:36:28 +0200

Seen: 60 times

Last updated: Nov 15 '19