推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
conn4575
V2EX  ›  Python

a.*这样的字符串识别为通配符,而将 a\.*这样的字符串识别为正则表达式

  •  
  •   conn4575 · Jan 16, 2018 · 3515 views
    This topic created in 3048 days ago, the information mentioned may be changed or developed.
    如题,客户的奇葩需求,完全不知道没思路…
    7 replies    2018-01-17 08:11:41 +08:00
    guyskk0x0
        1
    guyskk0x0  
       Jan 16, 2018 via Android
    回去把需求问透彻,问到有思路为止
    nciyuan
        2
    nciyuan  
       Jan 16, 2018 via Android
    奇葩+1,你看看正式环境和需求文档吧,一般就判断除 26 个英文字母之外其他都是正则吧,一大堆 if 和 eles 正在赶来的路上
    0ZXYDDu796nVCFxq
        3
    0ZXYDDu796nVCFxq  
       Jan 16, 2018
    a.*也是合法正则啊
    另外,这种规则,如果是让用户输入字符串,根本没有用户知道怎么用
    Carseason
        4
    Carseason  
       Jan 16, 2018 via iPhone
    用函数来开始啊,比如在要用到正则的时候需要用某函数才算正则,不然的话就当普通来算
    caola
        5
    caola  
       Jan 17, 2018
    两种都是合法的正则。。。
    eccstartup
        6
    eccstartup  
       Jan 17, 2018 via iPhone
    a\.*.*
    wweir
        7
    wweir  
       Jan 17, 2018 via Android
    了解一下 Vim 正则使用的 4 个等级,可能对你有帮助
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 579ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
    ♥ Do have faith in what you're doing.