I am trying to write a regular expression that will only allow lowercase letters and up to 10 characters. What I have so far looks like this:
pattern: /^[a-z]{0,10}+$/
This does not work or compile. I had a working one that would just allow lowercase letters which was this:
pattern: /^[a-z]+$/
But I need to limit the number of characters to 10.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…