Hi,
I need to emulate a regular expression with a negative lookahead, which is, AFAIK, not supported in JS. This can be achieved with capture groups, but, when using the wrap attribute, I have no access to them.
Example: in the expression /(This)(\s+)(document)/ I need to wrap the document part with an element, but only if it's preceded by This.
I can't find a way to achieve this with the current API, any suggestions?
Hi,
I need to emulate a regular expression with a negative lookahead, which is, AFAIK, not supported in JS. This can be achieved with capture groups, but, when using the
wrapattribute, I have no access to them.Example: in the expression
/(This)(\s+)(document)/I need to wrap thedocumentpart with an element, but only if it's preceded byThis.I can't find a way to achieve this with the current API, any suggestions?