I have a string variable, chosen_list that concatenates two strings with proper noun capitalization (uppercase followed by all lowercase), so where the two strings are concatenated it has a lowercase letter followed by an uppercase one.
In order to split them I'm trying to replace the lowercase-uppercase sequence with another character ("/" in this case), but regexm() and regexr() are not picking it up - when I type "gen chosenpta=regexr(chosen_list, "[a-z][A-Z]", "/")" it does nothing.
Am I doing something wrong in this expression, and if so, what?
Thanks,
Zach Groff
In order to split them I'm trying to replace the lowercase-uppercase sequence with another character ("/" in this case), but regexm() and regexr() are not picking it up - when I type "gen chosenpta=regexr(chosen_list, "[a-z][A-Z]", "/")" it does nothing.
Am I doing something wrong in this expression, and if so, what?
Thanks,
Zach Groff
Comment