Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Could really use some help, I need to be able to match a url that starts with (http) and ends with (.flv). I wouuld really appreciate some help.
Posted

VB.NET
Dim pattern="http.*\.flv"
Dim pattern2="^http.*\.flv$"
'^ means at the 1st of the line; $ means at the end of the line
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 18-Oct-11 1:46am    
Correct, a 5.
--SA
Many applications may help you learn Regular Expressions:
Expresso form http://www.ultrapico.com
csharpregexdemo on the code project
RegEx Builder form www.SoftPedia.com
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Oct-11 1:46am    
Useful advice, a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900