I could use some assistance with replacing a special character in a string using a regular expression that's proving tricky for me to solve.
The string I'm working with contains a special character "↵" that I want to replace with a comma.
var string = "http://espn.com↵http://yellowpages.com↵http://reddit.com↵http://usps.com http://uber.com↵http://cnn.com↵http://w3schools.com↵http://hitch.com↵http://sdsu.com↵http://sf.com↵http://kings.com"
To provide some context, I'm extracting the input from a textarea where each URL is entered on a new line and attempting to convert it into an array of URLs.
The string example above represents the content retrieved from the textarea.
Your help would be greatly appreciated.