The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to remove excess lines
#1
i have multi-line string that i want to remove the excess lines and just leave 1 double space. i have tried the findreplace("[] []" "[]". thinking it would remove double carriage and leave 1 but it removes ALL carriage returns/new lines. i want to leave 1 line space between strings

EXAMPLE
dog jump over the fence



the cat meows


look both ways before crossing

SHOULD BE...
dog jump over the fence

the cat meows

look both ways before crossing


Messages In This Thread
how to remove excess lines - by ilcaa - 07-31-2020, 11:00 PM
RE: how to remove excess lines - by Kevin - 08-01-2020, 12:34 AM
RE: how to remove excess lines - by ilcaa - 08-01-2020, 01:20 AM
RE: how to remove excess lines - by Kevin - 08-01-2020, 06:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)