Tsongkie Posted October 20, 2008 Share Posted October 20, 2008 Say I have a file c:\text.txt and I just want text.xt without the path, how do i do this? and the same with http://www.domain.com/abc.txt I just want to extract abc.text Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 20, 2008 Share Posted October 20, 2008 StringSplit() with / and/or \ as a deliminator. Then just get the last value in the returned array. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
rasim Posted October 20, 2008 Share Posted October 20, 2008 Say I have a file c:\text.txt and I just want text.xt without the path, how do i do this? and the same with http://www.domain.com/abc.txt I just want to extract abc.text 1. $string = "c:\text.txt" $string = StringRegExpReplace($string, "^.*\\", "") MsgBox(0, "Result", $string) 2. InetGet() 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