I'm trying to create a regex pattern that follows the rules:
I'm working with this rule ^[^eil]*[eil][^eil]*$
but having all capital letters also accepts the string.
You might use a match for only E
I
L
, lowercase chars a-z without e
i
l
plus digits _
and non word characters \W
^[EILabcdfghjkm-z0-9_\W]+$