- 3
- 0
- 约1.28万字
- 约 13页
- 2017-10-06 发布于河南
- 举报
常用正则表达式(Regular expressions)
常用正则表达式(Regular expressions)
Matches the start position of the input string. If you set the Multiline attribute of the RegExp object, ^ matches the position after\nor\r.
$matches the end position of the input string. If the Multiline property of the RegExp object is set, $matches the location before\nor\r.
* matches the previous sub expression zero or more times. For example, zo* can match Z and zoo. * equivalent to {0}.
+ matches the previous sub expression one or more times. For example,zo+matches Zo and zoo, but does not match Z. + is equivalent to {1}.
Matches the previous sub expression zero or twice. For example, do (ES) can match the do in do or does. Equivalent to {0,1}?.
{n} n is a nonnegative integer. Match the specified n times. For example,o{2}does not match theo in Bob, but it matches the two o in food.
{n,} n is a nonnegative integer. Match at least n times. For example,o{2,}cannot match Bob ino, but can match all o in foooood. o{1,}is equivalent too+. o{0,}is equivalent too*.
{n, m} m and N are non negative integers, n = M. Match n times at least, and match m times at most. For example, o{1,3} will match the first three o in fooooood. o{0,1}is equivalent toO?. Note that there is no space between commas and two numbers.
When the character is followed by any other qualifier (*, +,,,, {n}, {n,}, {n, m}), the matching pattern is non greedy. The non greedy pattern matches the search string as little as possible, whereas the default greedy pattern matches the search string as much as possible. For example, for string oooo, o+ will match a single o, ando+will match allo.
Matches any single character other than \n. To match any characters, including\n, use the[.\n] like pattern.
(pattern) match pattern and get the match. The resulting matches can be obtained from the resulting Matches collection, using the SubMatches collection in VBScript, and $0 in JScript... $9 property. To match the parenthesis characters, please use (or \ \).
(:: pattern) matches patter
您可能关注的文档
- 实行单一税收管辖权的理论依据(The theoretical basis for the implementation of a single tax jurisdiction).doc
- 实验室设计与规范(Laboratory design and specification).doc
- 实验5 树的宽度 层次遍历(Experiment 5 tree width hierarchy traversal).doc
- 实验设计的基本原则(Basic principles of experimental design).doc
- 宠物的属性互克表+绿宝石金手指代码(Pet attributes mutual Table + emerald gold finger code).doc
- 审时度势 锐意改革 平衡压力 和谐发展(Size up the situation, reform firmly, balance pressure and develop harmoniously).doc
- 审美距离1(Aesthetic distance 1).doc
- 审计脚本语言(Audit script language).doc
- 审计(宏观经济学基础)(Auditing (Foundations of macroeconomics)).doc
- 审计风险(Audit risk).doc
最近下载
- 2026年浙江档案职称考试(档案工作实务)历年参考题库含答案详解.docx VIP
- 南通佳宜有限公司办公楼建筑结构设计.docx
- 拼拼豆教程及图案汇总[已排版可直接打印].doc VIP
- 共情传播视角下的网络微短剧叙事分析.docx VIP
- 贵阳市2024届高三适应性考试(一)一模物理试卷(含答案).docx
- 高中物理运动和力的关系10道计算题专题.docx VIP
- 语言学及应用语言学专业硕士研究生培养方案﹙050102﹚.docx VIP
- 10以内加减混合填空题(30页).docx
- 三相四线电能表不接零线电量分析0516..doc VIP
- 2025年乡村医生招聘考试试题题及答案.docx VIP
原创力文档

文档评论(0)