add x flag to regex
and change {0,2} to {0,3}