摘要: The regular expression classes of the .NET framework also support named capture. Unfortunately, the Microsoft developers decided to invent their own syntax, rather than follow the one pioneered by Py... 阅读全文
posted @ 2010-05-17 18:59 基础软件 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 正则表达式被广泛用于各种字符串处理应用,如查找、替换、格式验证等。正则表达式定义了一个字符串模式,例如,规定了字符串中应该包含哪些字符,不能包含哪些字符,以什么字符开头和结尾,某些字符出现多少次等。正则表达式本身也是一个字符串,用一种特定语法描述模式,正则表达式区分大小写。组成正则表达式的元素大致有以下几种。 阅读全文
posted @ 2010-05-17 18:58 基础软件 阅读(3096) 评论(0) 推荐(0) 编辑