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

前端 未结 5 1927
刺人心
刺人心 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:20

    ^.{8,}$

    This will match something that has at least 8 characters. You can also place a number after the coma to limit the upper bound or remove the first number to not restrict the lower bound.

提交回复
热议问题