c# - .Net Regex for mm-dd-yy and others + yyymmdd -


i feel chasing tail.

i trying arrive @ .net regex match on following:

mm-dd-yy
m-dd-yy
mm-d-yy
m-d-yy

and (no dashes)

yyyymmdd

one or 2 digits followed dash, followed 1 or 2 digits, followed dash, follows digits or 8 digits:

(\d{1,2}-\d{1,2}-\d{2})|(\d{8}) 

Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -