unfortunately, PB seems to ignore ?: (non-capturing group);
matches include <file>/</file> .. any workaround?
Code: Select all
If CreateRegularExpression(0, "(?:<file>)(.*?)(?:</file>)",#PB_RegularExpression_DotAll )
Dim Result$(0)
NbFound = ExtractRegularExpression(0, "<xml><test>nn</test><file>File.txt</file><data>...</data><file>Yes.exe</file></xml>", Result$())
For k = 0 To NbFound-1
Debug Result$(k)
Next
Else
Debug RegularExpressionError()
EndIf