geew
V2EX  ›  问与答

tornado url 匹配里面 匹配 url 中的中文怎么写呢

  •  
  •   geew · Nov 3, 2014 · 2955 views
    This topic created in 4253 days ago, the information mentioned may be changed or developed.
    比如这样的:

    (r'/user/(?P<name>[\w_\-\u4e00-\u9fa5]+)/?', UserHandler, kwargs)

    不行 匹配不到中文呢
    1 replies    2014-11-03 20:47:38 +08:00
    kzing
        1
    kzing  
       Nov 3, 2014
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2853 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 11:06 · PVG 19:06 · LAX 04:06 · JFK 07:06
    ♥ Do have faith in what you're doing.