Matching a few letters and letters with numbers [closed]

fitmiperai

New Member
I'm trying to match letters C D F H I E1 E2 CR (case insensitive) and came up with this. It'll match a single letter but wont match the E1 E2 CR. Actually it should. Whats the right way to do this?\[code\]preg_match('/^([C]|[D]|[F]|[H]||[E1]|[E2]|[CR]?)$/','CR')\[/code\]
 
Back
Top