使用正则表达式,如何用逗号(,)替换每个换行符char(\ n)?
喜欢这个:
Demetrius Navarro
Tony Plana
Samuel L. Jackson
至:
Demetrius Navarro,Tony Plana,Samuel L. Jackson
不是在特定的编程语言中,只是标准的正则表达式。像这样的东西:
(.*)
$1
//This just takes the whole string and outputs it as is, I think