1. /^[a-z]+/d+$/
begin with one or more lower chars [a-z], end with one or more digital numbers.
2. /^([a-z]+(/d)+)+$/
the pattern above is repeated more than once.
本文介绍了两种特定的正则表达式模式:一种是从一个或多个小写字母开始,并以一个或多个数字结束的字符串;另一种是重复出现由一个小写字母序列加一个数字组成的模式。这些模式对于理解文本匹配规则非常有用。
1. /^[a-z]+/d+$/
begin with one or more lower chars [a-z], end with one or more digital numbers.
2. /^([a-z]+(/d)+)+$/
the pattern above is repeated more than once.

被折叠的 条评论
为什么被折叠?