加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Regular Expression - 正则表达式

发布时间:2020-12-14 01:46:19 所属栏目:百科 来源:网络整理
导读:Regular Expression: (regex or regexp) is a sequence of characters that forms a search pattern,mainly for use in pattern matching with strings,or string matching. (From wiki) Lists of a particular category of characters,operators and constr

Regular Expression: (regex or regexp) is a sequence of characters that forms a search pattern,mainly for use in pattern matching with strings,or string matching. (From wiki)

Lists of a particular category of characters,operators and constructs that can be used to define regular expressions:

Character Escapes:




Character Classes: matches any one of a set of characters.



Anchors: cause a match to succeed or fail depending on the current position in the string.


Grouping Constructs



Quantifiers:


Backreference Constructs: allows a previously matched subexperession to be identified subsequently in the same regular expression.


Alternation Constructs: Modify a regular expression to enable either/or matching.


Substitutions: are regular expression language elements that are supported in replacement patterns.


Regular Expression Options:


Miscellaneous Constructs:



References:http://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读