I have below Data in column Clicks:
MEM-BEN-BTN-CLK-entertainment-audible
MEM-BEN-LOC-MODAL-LOCATION-INPUT-Birmingham, AL, USA
MEM-BEN-BTN-CLK-entertainment-games
MEM-BEN-BTN-CLK-healthandwellness-love-and-meaning-after-50
MEM-BEN-BTN-LRN-learn-more-aarp-travel-center-powered-by-expedia-10083
MEM-BEN-BTN-LRN-learn-more-embassy-suites-by-hilton-1019
I want to split the column Click into two columns Click_Upper and Click_lower
Click_Upper (holds all uppercase characters)
MEM-BEN-BTN-CLK
MEM-BEN-LOC-MODAL-LOCATION-INPUT
MEM-BEN-BTN-CLK
MEM-BEN-BTN-CLK
MEM-BEN-BTN-LRN
MEM-BEN-BTN-LRN
Click_lower (holds all lowercase characters)
entertainment-audible
Birmingham, AL, USA
entertainment-games
healthandwellness-love-and-meaning-after-50
learn-more-aarp-travel-center-powered-by-expedia-10083
learn-more-embassy-suites-by-hilton-1019
I was trying to use split() function, but there are multiple delimiters (-) and the strings are of varying length so the code is not working for me. Also tried re but its breaking the string.
I would appreciate any guidance or help I could get on this.