Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6587

regular expression match collection

$
0
0

 

In the attached "regex test.seq" i'm trying to copy a match collection to an array, to be able to "for each" over all mathes. 

 

Use Existing Object(System.Text.RegularExpressions.MatchCollection).CopyTo(System.Array, Int32)

 

What am I doing wrong ?

 

 

An exception occurred inside the call to .NET member 'CopyTo':
System.ArgumentNullException: Value cannot be null.
Parameter name: dest
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Collections.ArrayList.CopyTo(Array array, Int32 arrayIndex)
   at System.Text.RegularExpressions.MatchCollection.CopyTo(Array array, Int32 arrayIndex)

 


Viewing all articles
Browse latest Browse all 6587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>