I have a string that is something like "Hello 9 you8 [C#587]" or "Hello 9 you8 [#587]"
I need to check if the string contains "[#numbers]" or "[letter#numbers]" using a regular expression in C#.
Please assist.
kind regards
In actual fact the “letter” part might be a word.
Please help as per update.
Thanks
try this,
\[([A-Za-z]+)?#(\d)+\]