Closed GoogleCodeExporter closed 9 years ago
Thanks for catching this. I'm all for optimizing (or removing) regexs if
possible.
In this case your fix won't have the same functionality (basically a trim of
each
line). Can you try replacing with these lines instead?
$html = preg_replace('/^\\s*/m', '', $html);
$html = preg_replace('/\\s*$/m', '', $html);
Original comment by mrclay....@gmail.com
on 28 Jul 2008 at 4:35
Fixed in R160. ecroyd, can you verify this worked? I combined the patterns
suggested
above:
$html = preg_replace('/^\\s+|\\s+$/m', '', $html);
Original comment by mrclay....@gmail.com
on 29 Jul 2008 at 4:20
Both your latest solution (comment 2) and your earlier solution (comment 1) fix
my
problem.
Thank you very much for providing such a great tool.
Original comment by ecr...@gmail.com
on 29 Jul 2008 at 8:34
Original comment by mrclay....@gmail.com
on 29 Jul 2008 at 11:54
Original issue reported on code.google.com by
ecr...@gmail.com
on 28 Jul 2008 at 12:08