How do i write a regex to replace or with \\n. I\'m trying to move text from div to textarea, but don\'t want
\\n
Not really anything to do with jQuery, but if you want to trim a pattern from a string, then use a regular expression:
Add stuff to text area