Every email consists of a local name and a domain name, separated by the @ sign. For example, in alice@leetcode.com, alice is the local name, and leetcode.com is the domain name. Besides lowercase letters, these emails may contain '.'s or '+'s. If yo
1 概述 1.1 定义 本质是由一系列字符和特殊符号组成的字串,用来表示一定规则的某一类字符串. 1.2 特点 正则表达式是一个独立的技术,其在多种编程语言中使用. 在python语言中的正则表达式模块为 re 模块 2 正则表达式 2.1 元字符 首先引入re模块 tarena@tedu:~$ ipython3 In [1]: import re # 单个字符 匹配规则:匹配相应的字符 例如 a 匹配 a ab 匹配 ab In [2]: re.findall('ab','abc')