Creating Regular Expression String [C#]

Shaitan00

Junior Contributor
Joined
Aug 11, 2003
Messages
358
Location
Hell
Using C#; I am trying to create a Regular Expressing String to match with a certain format. The format itself is File Path Format: “X\Y.Z”

where X = Certain amount of letters or numbers [File Path]
Y = Certain amount of letters or numbers [File Name]
Z = 3 Letters [File Extension]

For example: “folder\file.text” should validate but “folder\\file.te” should fail.

Any ideas on what the RegEx string syntax would look like for this case?
 
Back
Top