CreateRegularExpression: non-capturing group?
Posted: Mon Nov 04, 2013 7:24 pm
				
				hello,
unfortunately, PB seems to ignore ?: (non-capturing group);
matches include <file>/</file> .. any workaround?
			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