jQuery javascript regex Replace
with \n

前端 未结 5 534
独厮守ぢ
独厮守ぢ 2020-12-02 11:46

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

5条回答
  •  一向
    一向 (楼主)
    2020-12-02 12:37

    Not really anything to do with jQuery, but if you want to trim a pattern from a string, then use a regular expression:

    
    
    

提交回复
热议问题