这个正则表达式的含义? [英] Meaning of this Regular Expression?
本文介绍了这个正则表达式的含义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我此正则表达式的含义吗?
Regex regex = new Regex("\\< [^ \\>] * \\>");
Could anyone please tell me the meaning of this Regular Expression?
Regex regex = new Regex("\\<[^\\>]*\\>");
推荐答案
Regex regex = new Regex("\\<[^\\>]*\\>"); .
可以改写为
can be rewritten as
Regex regex = new Regex(@"\<[^\>]*\>"); .
匹配必须以<"字符开头,然后是零个或多个不包含>"的字符,然后是>"字符
问候
Espen Harlinn
Match must start with a ''<'' character, then zero or more characters excluding ''>'' and then a ''>'' character
Regards
Espen Harlinn
请参阅我的 ^ ]在这里,我在那里解释了相同的表达式.
它只是用来查找任何HTML标记的.
See my TIP[^] Here, I''ve explained the same expression there.
It''s just used to find any HTML tag.
这篇关于这个正则表达式的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文