需要下面的正则表达式 [英] Require a regular expression for below
本文介绍了需要下面的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个字符串,例如:
For Sports watch @@ video:[anything] $$ For Entertainment watch
@@视频:[任何] $$;
任何人都可以帮我生成一个正则表达式来检索所有
@@ video :[什么]有点链接?即我要求所有文本从@@视频开始到$$
PS:可以有任何特殊字符,如@,$等等任何内容
@@视频:[任何] $$
I have a string such as :
"For Sports watch @@video:[anything]$$ For Entertainment watch
@@video:[anything]$$";
Can anyone help me to generate a regular expression to retrieve all
@@video:[anything]$$ kind of links? i.e. I require all text starting from @@video upto $$
P.S : There can be any special characters like @,$ etc. in anything of
@@video:[anything]$$
推荐答案
娱乐观看
@@视频:[任何]
For Entertainment watch
@@video:[anything]
;
任何人都可以帮我生成一个正则表达式来检索所有
@@ video :[任何]
";
Can anyone help me to generate a regular expression to retrieve all
@@video:[anything]
类型的链接?即我要求所有文本从@@ video upto
kind of links? i.e. I require all text starting from @@video upto
这篇关于需要下面的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文