制作正则表达式 [英] make regex of

查看:130
本文介绍了制作正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,我想要跟随我累了很多,但我可以得到理想的结果

Hey guys i want to make regex of following i tired many but i can`tr get the desired results

<a href="//webcache.googleusercontent.com/search?hl=en&amp;q=cache:HOIYlGgkk34J:http://www.ringier.com/index.cfm?rub=365+index.cfm%3Frub%3D&amp;ct=clnk">

我想提取网站的网址http://www.ringier.com/index.cfm?rub= 365<<只有这一部分如何制作正则表达式?

i want to extract the url of website http://www.ringier.com/index.cfm?rub=365 << only this part how to make regex for this?

 

我想在Vb .net 2008中做任何帮助

i want to make it in Vb .net 2008 any helps

推荐答案

以下是我的尝试:

Here's my stab at it:

TextBox2.Text =

TextBox2.Text =

< span style ="font-size:x-small"> System.Text.RegularExpressions.Regex( "(?< = \:)http \:\ / \ / [^ \ +] +" )。匹配(TextBox1.Text).ToString

但您可能应该包含更多样本。

but you should probably include more samples.

p>


这篇关于制作正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆