geew
V2EX  ›  问与答

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

  •  
  •   geew · Nov 3, 2014 · 3290 views
    This topic created in 4407 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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   941 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:08 · PVG 04:08 · LAX 12:08 · JFK 15:08
    ♥ Do have faith in what you're doing.