I have a string (strBin) which needs to be seperated out into 3 distinct parts (strAisle, strRack, strLevel).
- if the first character is not a number
strAisle must follow the following quidelines:
- If the first and second characters are numbers, let me have the first 2 characters. (if only the first character is a number then add a zero in front, then give me the first 2 characters)
- If the first 2 characters = "90" then I need the first 4 characters.
strRack must follow the following guidelines:
- strRack must be 1-2 characters long starting immidiately after strAisle and is 2 characters if and only if the second character after strAisle is not a number.
strLevel must follow the following guidelines:
- the next 2 characters immidiately following strAisle and strRack
Any characters remaining after strLevel are to be ignored.
- if the first character is not a number
- strAisle = strBin
- strRack = ""
- strLevel = ""
strAisle must follow the following quidelines:
- If the first and second characters are numbers, let me have the first 2 characters. (if only the first character is a number then add a zero in front, then give me the first 2 characters)
- If the first 2 characters = "90" then I need the first 4 characters.
strRack must follow the following guidelines:
- strRack must be 1-2 characters long starting immidiately after strAisle and is 2 characters if and only if the second character after strAisle is not a number.
strLevel must follow the following guidelines:
- the next 2 characters immidiately following strAisle and strRack
Any characters remaining after strLevel are to be ignored.
Comment