neodammer Posted August 18, 2005 Posted August 18, 2005 I know of all the basic functions on string searching but I wonder can you reverse it and start from the end and work backwords? like instead of in the string "abcdefg" getting "abc" can you get "efg" starting from the back and counting backwards? Quote Enzin Research and Development
IngisKahn Posted August 18, 2005 Posted August 18, 2005 Well if you know all the basic string functions then you know LastIndexOf, that's not what you want? Quote "Who is John Galt?"
neodammer Posted August 19, 2005 Author Posted August 19, 2005 lastindexof works in reverse? thanks man ! I'll have to check it out. Nah when i ment basic i ment like mid() and substring etc.. lol really basic basic lol Quote Enzin Research and Development
Leaders Iceplug Posted August 20, 2005 Leaders Posted August 20, 2005 How exactly are you "getting" abc from the string "abcdefg"? By S.Substring(0, 3) You can extract the remainder of a string from a specific point by supplying only the starting value S.SubString(5) For starting at X, the number of characters away from the last character, you'd do S.SubString(S.Length - X - 1) If you want the last Y # of characters from the end of the string S.SubString(S.Length - Y) :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.