TestList = New List(of string)(new String(){“QUS0031056PR19A”,“US00073718PR20A”,“QHK0016342CA19A”})
Using LINQ, I want to get all strings in an another list which are of type xUSxxxxxxxxx19x. The first element in above list(QUS0031056PR19A) satisfy this pattern. It should be noted that all element are of same length(15 characters).
Any help on this request would be much appreciated.
There is an update in requirement now. Instead of 19 in the pattern xUSxxxxxxxxx19x, I need to filter all string whose value is less than 19, like xUSxxxxxxxxx18x, xUSxxxxxxxxx17x, xUSxxxxxxxxx16x etc.
There is an update in requirement now. Instead of 19 in the pattern xUSxxxxxxxxx19x, I need to filter all string whose value is less than 19, like xUSxxxxxxxxx18x, xUSxxxxxxxxx17x, xUSxxxxxxxxx16x etc.