I want to replace all the 4 dots(....) in my String with new line (\n) by using regex in the replace method.
orange...apple....banana --> should be pirnted as:
orange
apple
banana
I have tried the following:
get : function(value) {
value = value.replace(/(...)/g, '\n');
return value;
}
and
value.replace(/(\r\n|\n)/g, '....')
--> should retrieve 'orange....apple....banana'