I want to write a regular expression to match the given pattern
anyname/anyname2/anydate/string
anyname: It must accept valid names including underscore (_)
anyname2: It must accept valid names including underscore(_) or hiffen (-)
anydate: The date must be in the format like 'yyyy-mm-dd'. Ex: 2016-12-10
string: This string contains predefined strings. it needs to match only the required characters like, [computer],[desktop],[laptop]. Other than these 3, it should not match any other.
Note: The expression must also match '/' as in the above mentioned pattern