Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Out of memory on UCase()
Message
De
29/07/2013 11:12:07
 
 
À
29/07/2013 10:51:59
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01579306
Message ID:
01579351
Vues:
36
>>Update
>>
>>
>>This is the correct pattern
>>
>>string pattern = @"\<img\s+src\s*=\s*(""(?<image>[^""]*)""|'(?<image>[^']*)'|(?<image>[^""' ]*))";
>>
>>
>>since the image does not need to be enclosed in quotes
>
>I'll take your word for it - it would take me all day to get my head round that expression :-}


It's not that complicated
@"\<img\s+src\s*=\s*"
positions after SRC=

Then there are 3 posibilites
- string starting with single quote
- string starting with double quote
- string without quotes




Any RegEx questions in the future - shoot

>
>>Just ran this on the members on-line page
>>
>><IMG SRC=Images\Point.gif
>>
>>
>>Matches.Count = 74
>
>Guess that's not going to need a lot of pointers then.....
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform