detechn logo

惪特博客

  • 文章

    1.7W+
  • 评论

    4.1W+
  • 浏览

    1018W+
  • 标签

    7.5K+
写出开头匹配字母和下划线,末尾是数字的正则表达式?

写出开头匹配字母和下划线,末尾是数字的正则表达式?

```python s1='_aai0efe00' res=re.findall('^[a-zA-Z_]?[a-zA-Z0-9_]{1,}\d$',s1) print(res) ```

779