I need some assistance fixing my regular expression, which should match the following conditions:
- sand only- s
- fand only- f
- dnand only- dn
- any one or two whole numbers in front of a d (35dfor example) or any number with decimals- sswould be invalid,- dnfwould be invalid,- 305dwould be invalid
 
Regular Expression:
- ^(s|f|dn)|(\d{2}d)$gets me started- sfmatches, but it shouldn't.
 
 
     
    