speck Posted January 5, 2009 Share 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 Link to comment Share on other sites More sharing options...
Valuater Posted January 5, 2009 Share Posted January 5, 2009 StringBetween() "http://" and ".jpg" ???? 8) Link to comment Share on other sites More sharing options...
rasim Posted January 5, 2009 Share 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) Link to comment Share on other sites More sharing options...
speck Posted January 6, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
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