speck Posted January 5, 2009 Posted January 5, 2009 http://alphanumerical.alphabetical.com/alphanumerical/alphanumerical/2857567560056822654SuMRru_fs.jpg watch the dots separate the domain and subdomain, upper&lower case and the underscore at the end of the URL ".....SuMRru_fs.jpg"standar criteria are "http://" and ".jpg"i wrote something about that ...$asResult = StringRegExp($source,"http://[a-z]|[0-9]|[A-Z]|\.jpg",1) If @error == 0 Then MsgBox(0, "the link is:", $asResult[0] ) EndIfthnx a lot anyway...Chris Dimas (Speck) the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins
rasim Posted January 5, 2009 Posted January 5, 2009 @speckTry this:#include <Array.au3> ;Only for _ArrayDisplay $sFile = @ScriptDir & "\Test.txt" $sRead = FileRead($sFile) $aString = StringRegExp($sRead, "http://(.*)/.*\.jpg", 3) _ArrayDisplay($aString)
speck Posted January 6, 2009 Author Posted January 6, 2009 (edited) A lot of thnx Valuater and rasim! I'm done....! Edited January 6, 2009 by speck the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now