You can loop over each character and check their order,like A has 65 and Z has 92.You can check if the order of a character falls within a range and if they do you know that they are simple alphabets else special character.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…