Then first thing the regex you are using is not giving any data may be there are changes to input that what ypu provided here.
Second please confirm if your type argument is of type match
And then I see the log message inside for loop which says currwntitem.tostring which should be currentitem.Value…
Cheers