I have some problems concatenating different strings and that I would like to split again. I deal with things like
name="on-Butylhydroxylamine1-MethylpropylhydroxylamineAmino-2-butanol"
which in this case should be divided into "on-Butylhydroxylamine", "1-Methylpropylhydroxylamine" and "Amino-2-butanol"
Any thoughts on how I could use the regular expression strsplit and / or gsub to achieve this? The rule that I would like to use is that I would like to split the word when either a number, or a bracket ("("), or an uppercase letter follows the lowercase letter. Any thoughts how to do this?
source share