紧急帮助正则表达式找不到这个匹配为什么? [英] urgent help with regex cant find this match why ?

查看:83
本文介绍了紧急帮助正则表达式找不到这个匹配为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我正在使用正则表达式来抓取页面和标题的链接并链接到数据表,然后在数据网格中显示这一点,这一切都很有效,直到它在我的应用程序中达到一点



i需要从这里获得一个链接



hi i am using regex to grab link from a page and at the title and link to a datatable and then dispaly this in a datagridview this is all working great un till it gets to one point in my application

i need to get a link from inside this

<video autoplay="" class="vjs-tech" data-id="19240" data-number="1" data-season="1" data-setup="{}" data-show="sho1" data-title="show1" data-type="Video" id="my_video_html5_api" nativecontrolsfortouch="false" poster="thumb_MV5BMTI3ODc2ODc0M15BMl5BanBnXkFtZTYwMjgzNjc3.jpg" preload="metadata" src="webm" style="cursor: none;">
<source src="webm" type="video/webm">
<source src="mp4 video link i need to get" type="video/mp4">
</video>





现在我尝试使用正则表达式进行以下初始化



now i tried to get this using regex with the following expreshion

<source src="()" type="()">



但它没有任何剂量任何人有任何想法


but it picks up nothing dose anyone have any ideas

推荐答案

首先学习正则表达式。这就像用叉子和刀子吃饭:如果你不设法处理它们,你就会削减自己。与任何其他尖锐工具(如正则表达式等)相同。



如需快速入门或更精细的教程,请参阅:

- 30分钟正则表达式教程 [ ^ ]

- http://www.tutorialspoint.com/vb.net/vb.net_regular_expressions.htm [ ^ ]

- https://www.google.com/search?q=regex+tutorial+VB [<一个href =https://www.google.ch/search?q=regex+tutorial+VB\"target =_ blanktitle =新窗口> ^ ]



这对你的紧急请求来说足够快吗? ;-)



干杯

Andi



PS:急引发了很多人的反应,只是为了不回答最好的问题,然后对问题进行投票,以便尽快删除。

所以,我敦促你严格避免紧急这里发布的任何问题。
Learn Regex first. It's like eating with fork and knife: If you don't manage to handle them, you cut yourself. The same with any other "sharp" tool (like Regex, etc.).

For getting started quickly or for more elaborate tutorials, see:
- The 30 Minute Regex Tutorial[^]
- http://www.tutorialspoint.com/vb.net/vb.net_regular_expressions.htm[^]
- https://www.google.com/search?q=regex+tutorial+VB[^]

Is this quick enough for your "urgent" request? ;-)

Cheers
Andi

PS: "urgent" triggers a reflex with many people for just not answering at best, and down-voting the question so it gets deleted soon, at worst.
So, I "urge" you to strictly avoid "urgent" in any of the questions posted here.


这篇关于紧急帮助正则表达式找不到这个匹配为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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