Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 23:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



StringRegExp

Discussion on StringRegExp within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
StringRegExp

Es geht um YT halt :P
Je nach Suchanfrage gibt es entweder einen String nach dem Schema
Code:
<a href="/watch?gl=DE&client=mv-google&hl=de&v=ltlsfOOkBqg">Hey YOUTUBE!!!</a>
oder eben 2 nur dass der 2. wie folgt aussieht
Code:
<a href="/watch?gl=DE&client=mv-google&hl=de&v=vQqpMukDSP4"><img src="http://i.ytimg.com/vi/vQqpMukDSP4/default.jpg?w=120&h=90&sigh=89rqZ2bCAF69IhXVyyTVXK_DaXI" alt="Video" width="120" height="90" style="border:0;margin:0px;" /></a>
Mein bisheriger Pattern sieht so aus
Code:
<a href="/watch[?]gl=DE&client=mv-google&hl=de&(.+)">(.+)</a>
So, da ich nicht jede existierende Suchanfrage in mein Script binden kann, will ich
Code:
<img src="http://i.ytimg.com/vi/vQqpMukDSP4/default.jpg?w=120&h=90&sigh=89rqZ2bCAF69IhXVyyTVXK_DaXI" alt="Video" width="120" height="90" style="border:0;margin:0px;" />
herausfiltern... nur wie? :x
Und der String ist nicht immer gleich...
mipez is offline  
Reply




All times are GMT +1. The time now is 23:07.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.