razorsese Posted February 2, 2013 Share Posted February 2, 2013 How I can replace the white line whit something else Example: simple sentence simple sentence simple sentence simple sentence simple sentence simple sentence to something like this $replaced simple sentence simple sentence simple sentence $replaced $replaced simple sentence simple sentence simple sentence $replaced Link to comment https://forums.phpfreaks.com/topic/273955-preg-replace-help/ Share on other sites More sharing options...
requinix Posted February 2, 2013 Share Posted February 2, 2013 Easiest method? Stick a $replaced at the beginning, a $replaced at the end, and replace an empty line (probably two consecutive newline sequences) with a $replaced+two newlines+$replaced. Link to comment https://forums.phpfreaks.com/topic/273955-preg-replace-help/#findComment-1409795 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.