Name DataType Subtype autRegExp Automation 'Microsoft VBScript Regular Expressions 1.0'.RegExp autRegExpMatchColl Automation 'Microsoft VBScript Regular Expressions 1.0'.MatchCollection autRegExpMatch Automation 'Microsoft VBScript Regular Expressions 1.0'.Match
ltxtValue := 'AZERTYABCD-11-00234UIOP'; CREATE(autRegExp); autRegExp.Pattern := 'ABCD-\d{2}-\d{5}'; autRegExpMatchColl := autRegExp.Execute(ltxtValue); FOR i := 1 TO autRegExpMatchColl.Count DO BEGIN autRegExpMatch := ???; MESSAGE(autRegExpMatch.Value); END;I don't know how to assign an autRegExpMatchColl item to autRegExpMatch. Normally, I would write
autRegExpMatch := autRegExpMatchColl.Item(i);but this gives a runtime-error: The requested member does not exist, or the call tried to set the valueof a read-only property.
Answers
Also with this code:
Try to change to version 5.5 instead, I guess you have both versions installed as well. That worked for me.