I have a scenario like. I am reading 5 address lines. In any of the lines i have to find a 5 digit word like DC123 (here DC is static and 123 will be dynamic say i may get DC859, DC254 etc…
In my if condition i have written as ex : item.ToString.Contans(“WC”)
My question is how to append reqular expression after WC which contains 3 dynamic numbers.
- Can we put a reqular expression which contains any numerics 1to0 and concatinate with “WC” [or]
- Include WC iteslf followed by 1to0 and assign it to a variable and replace it in the above code in “WC”
Can any body provide a need a sample line of code ?