用相等运算符替换新行的PHP正则表达式

用相等运算符替换新行的PHP正则表达式,php,regex,Php,Regex,我想替换从equal运算符后跟换行符到空格的字符串 From String:- Dr/CR,Entry Amount,Value date,Product,Party Code,Party Name,Virtual=\nAccount Number,Locations,RemittingBank,UTR No\nC,500000.0000,30-Mar-15,ABC,XYZ,QWER =\nLTD,LKJH, To String:- Dr/CR,Entry Amount,Value da

我想替换从equal运算符后跟换行符到空格的字符串

From String:-
 Dr/CR,Entry Amount,Value date,Product,Party Code,Party Name,Virtual=\nAccount Number,Locations,RemittingBank,UTR No\nC,500000.0000,30-Mar-15,ABC,XYZ,QWER =\nLTD,LKJH,

To String:- 
 Dr/CR,Entry Amount,Value date,Product,Party Code,Party Name,Virtual Account   Number,Locations,RemittingBank,UTR No\nC,500000.0000,30-Mar-15,ABC,XYZ,QWER  LTD,LKJH,

你可以用preg_替换

preg_replace('~=\n~', " ", $str);

感谢@Avinash的快速响应,节省了我的时间。