segmentationfault
Programmer
What's the most stable and convenient way to split a string at arithmetic symbols? Ideally I'd like to use the split method, but once I split the string with one symbol ("+", for example) I have an array of strings which may or may not need to be split at "-", "*", or "/", which at first glance only compounds the task since I'd like to deal with only one array when I'm finished.
Is there an existing function which can be convinced to do this for me or will I have to do this myself with a bunch of comparisons and substrings? I'm perfectly able to write this, but if there's a more standardized way, I'd love to be enlightened.
Is there an existing function which can be convinced to do this for me or will I have to do this myself with a bunch of comparisons and substrings? I'm perfectly able to write this, but if there's a more standardized way, I'd love to be enlightened.