NumBreak-func
This function takes a mixed string "str$", looks the type of the first character, if it is a numeric character, the function will return the index of the first non-numeric character, and vice versa. The optional parameter "offset" specifies the index offset from where the function looks for the "break" position of the first numeric and text character change.
int NumBreak(string str$[, int offset])
str$
offset
Returns the index at which the first number and non-number change is found in "str$", starting at "offset" (default 1).
If a break, either number or non-number, is not found (i.e. the entire string has no number mixed), it returns 0.
Numbreak("Jan-12")=; //should return 5 Numbreak("Club45North")=; //should returns 5 Numbreak("Club45North", 5)=; //should returns 7 since find starting from "4" Numbreak("Club45North", 3)=; //should returns 5 since find starting from "u" Numbreak("Club45North", 7)=; //should returns 0, starting from "N" and thus no non-digit to digit change found to the end
NumExtract