Regular expression matching anything greater than eight letters in length, in Python

前端 未结 5 1860
刺人心
刺人心 2021-02-12 19:24

Despite attempts to master grep and related GNU software, I haven\'t come close to mastering regular expressions. I do like them, but I find them a bit of an eyesore all the sam

5条回答
  •  时光取名叫无心
    2021-02-12 20:13

    \w will match letter and characters, {min,[max]} allows you to define size. An expression like

    \w{9,}
    

    will give all letter/number combinations of 9 characters or more

提交回复
热议问题