I'm trying to limit the entries to a specific format.
If the entry has 5500 or 5100 such as 011-5500-000-00 then I want to have this:
^[0-9]{2,}\[0-9]{2}-[0-9]{4}-[0-9]{3}-$
But if the entry has anything other than 5500 or 5100 I want to have this:
^[0-9]{2,}\[0-9]{2}-[0-9]{4}-[0-9]{3}-[0-9]{2}$
How can this be accomplished with the if then else idea?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…