I have scoured numerous resources and forums but couldn't find a suitable solution for my problem. Since I am not well-versed in this topic, I am reaching out to the experts for assistance. This is the extent of what I have accomplished so far:
This is my current code:
var str = "Tell us about this interaction....";
var pat = /\([a-zA-Z]\)/g;
var out = str.replace(pat, "<br>");
alert(out);
The code snippet above only replaces the matched items with '< br >', please ignore the extra spaces as they are due to formatting issues.
The desired output I am aiming for::
"Tell us about this interaction... < br >(a) what the interaction was about..."
Any help or guidance on this matter would be greatly appreciated,
Thank you, Charles