Guharo Guharo - 7 months ago 105
C# Question

REGEX - Letters and symbols (C#)

Please I need help:

My regex:


I want the regex match with:
Start with letters, only one point, letters and underscores,finish with letters.
(No finish with underscore)




Thanks for the help :)


I think this may help:


Start with a letter, then a dot, any combination of letters and underscore, and finish with a letter.

Instead checking if there is no underscore at the end, you know that always will be a letter. Its simplier to read.

You can see the regex test (with fixed issues you find) here: - Test