BookmarkSubscribeRSS Feed

I occasionally need to break a string into several components such as A_B_C_D becoming A_B_C   and D. The last fragment is easily found by Scanning with a -1 but for the rest, I wind up reversing and left justifying the string and then doing a Substr, another reverse, and another left justification. My suggestion is to add a modifier to Scan so that starting at some point in the string (reading right to left), the returned value is the rest of the string. It would look something like


RestofString = Scan (String , -1 , '_' , 'rest' );