Positive Lookbehind is displaying in the result
Brought to you by:
mattes432
For the following code:
<product product-id="0270953014">
And this regular expression used:
(?<=<product product-id=")(.*?)(?=">)
The result is:
15: <product product-id="0270953014">
While it should be:
15:0270953014
At least that's what I get in the Find option and any Regex sofware, so I think the plugin is not considering correctly the expression.
Thanks,
Anonymous
Hi David Understand your request, but this is currently not implemented.
I would look into adding this feature to one of the next releases.
Thanks for the hint.
Mattes
Hi,
did you change the option selection to text?
If I use your example it shows nicely the nuber in different color if option seletion if not Line but text.
Regards, Matthias
BTW: if you want to see only the numbers in the searchresult like attached you can use following pattern.xml:
<analysedoc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nonamespaceschemalocation="./AnalyseDoc.xsd">
<searchtext searchtype="regex" select="text" hide="true"><product product-id="</searchtext>
<searchtext searchtype="regex" select="text" hide="true">(?<=<product product-id=")."></searchtext>
<searchtext searchtype="regex" select="text" bgcolor="cyan">(?<=<product product-id=")(.</searchtext>?)(?=">)
</analysedoc>
Don't forget to switch off the linenumbers in options dialog ;-)
Regards, Mattes
BTW2: I use hide function from scintilla, which does not get reflected into clipboard. If you try to filter the text into some smaller new text I recommend to use NPP Macros from converting the text as wanted.