使用正则表达式类(Regex Class) 如果您没有使用服务器端的控件(意味着您不可以使用验证控件),或者您需要其它的输入字段源而非表单字段(比如查询字串参数和cooki...
基于44个网页-相关网页
当nose检查python测试模块的内部时,它采用在选择测试模块时使用的正则表达式,收集与这个正则表达式匹配的函数和类。
When nose looks inside of a Python test module, it collects functions and classes that match the same regular expression that it USES for choosing test modules.
提出正确的正则表达式,然后使用matcher类的结果,这就是这个模式匹配库要做的全部工作。
Coming up with the right regular expression and then working with the results of the Matcher class is really all there is to the library.
对于大多数曾经使用过类 Unix 系统的程序设计人员来说应该熟悉正则表达式。
Regular expressions should be familiar to most programmers who have ever used a Unix-like system.
应用推荐