I have to split a column in MySQL table on each occurrence of a pattern say ":" and "," into multiple rows. Here is how the column data looks :-
Column_1
page1:message1,page2:message2,page3:message3,page4:message4
I want to show data like this :-
Column_2 Column_1
page1 message1
page2 message2
page3 message3
page4 message4
I have tried looking to REGEXP_REPLACE() and SUBSTRING_INDEX() MySQL functions but couldn't form a query to achieve this.
Someone please help on this.