In my Java program, I have a string like G C / F C / F C / F A / B / F / I
I am not much comfortable with Regex and would like to break the above string like below
G
C / F
C / F
C / F
A / B / F / I
Break it using some regex pattern like if character+space+character occurs, break the string.
Added from the comments
By character I meant [A-Z]. Tried this
(\s([a-zA-Z]\s)+)
but didn't work.