Hey I have the following strings as input:
"abcol"
"ab_col"
"cold"
"col_ab"
"col.ab"
I have the string col to search from. I'm using regex to match
Match matchResults = Regex.Match(input , "col", RegexOptions.IgnoreCase);
I want to match only the string that has this pattern
[Any special character or nothing ] + col + [Any special character or nothing]
From the above inputs, I want to return only
ab_col, col_ab , col.ab
Any help is highly appreciated.
Thanks
[Any special character] = [^A-Za-z0-9]