Django Book 翻译
菜单>:
TOC
返回
原文:
.. table:: +------------+--------------------------------------------------------------------+ |Symbol |Matches | +============+====================================================================+ |``.`` (dot) |Any character | +------------+--------------------------------------------------------------------+ |``\d`` |Any digit | +------------+--------------------------------------------------------------------+ |``[A-Z]`` |Any character, A-Z (uppercase) | +------------+--------------------------------------------------------------------+ |``[a-z]`` |Any character, a-z (lowercase) | +------------+--------------------------------------------------------------------+ |``[A-Za-z]``|Any character, a-z (case insensitive) | +------------+--------------------------------------------------------------------+ |``+`` |One or more of the previous expression (e.g., ``\d+`` matches one or| | |more digit) | +------------+--------------------------------------------------------------------+ |``[^/]+`` |All characters except forward slash | +------------+--------------------------------------------------------------------+ |``?`` |Zero or more of the previous expression (e.g., ``\d*`` matches zero | | |or more digits) | +------------+--------------------------------------------------------------------+ |``{1,3}`` |Between one and three (inclusive) of the previous expression | +------------+--------------------------------------------------------------------+
翻译:
.. table:: +------------+--------------------------------------------------------------------+ |符号 |匹配 | +============+====================================================================+ |``.`` (dot) |任意字符 | +------------+--------------------------------------------------------------------+ |``\d`` |任意数字 | +------------+--------------------------------------------------------------------+ |``[A-Z]`` |任意字符, A-Z (大写) | +------------+--------------------------------------------------------------------+ |``[a-z]`` |任意字符, a-z (小写) | +------------+--------------------------------------------------------------------+ |``[A-Za-z]``|任意字符, a-z (不区分大小写) | +------------+--------------------------------------------------------------------+ |``+`` |匹配一个或更多 (例如, ``\d+`` 匹配一个或 | | |多个数字字符) | +------------+--------------------------------------------------------------------+ |``[^/]+`` |不是/的任意字符 | +------------+--------------------------------------------------------------------+ |``*`` |匹配0个或更多 (例如, ``\d*`` 匹配0个 | | |或更多数字字符) | +------------+--------------------------------------------------------------------+ |``{1,3}`` |匹配1个到3个(包含) | +------------+--------------------------------------------------------------------+
备注:
译者: