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