What is the correct syntax for performing the following functions?
a.) I have a variable ($MyVariable) with a string as its value. The string would be something like this: "sometext||some-other-text". I want to return just the text to the LEFT of the "||" (or any delimiter).
b.)Taking that one step further, if $MyVariable = "sometext||some-other-text::even-more-text". I need functions to extract each portion of the string.