推荐学习书目
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
publicID123
V2EX  ›  Python

YAML中不匹配某一字符串的正则表达式该如何写

  •  
  •   publicID123 · Jun 6, 2011 · 6646 views
    This topic created in 5463 days ago, the information mentioned may be changed or developed.
    在GAE app.yml的url可以使用正则表达式来匹配某一类地址,
    如果我想匹配一个路径的子目录不是某一字符串,不知如何编写正则表达式?
    比如: test/.*路径下非test/examples/.*的任何地址。
    当然可以列举出test下所有使用的子目录来匹配,但这好像不太理想?补算子~好像也不起作用,使用 test/((?!examples$).*)貌似也是无效的。
    现在我没有更好的办法来完成此目的,所以在此求教各位啦。先谢谢各位啦


    另外不知livid可否将http://www.v2ex.com/static/js/jquery.js用相对地址来表示?如果我不是用v2ex.com来访问,浏览器都会卡好长时间才显示内容(因为此地址较难连接成功),谢谢。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4103 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 04:14 · PVG 12:14 · LAX 21:14 · JFK 00:14
    ♥ Do have faith in what you're doing.