0

I'm creating an email template and try to solve an unknown problem that add a random number of
at the beginning of my tables.

So my preg_replace is:
preg_replace('/<br>(.*?)<table/s', "<br><table", $message)

I tried it on these websites and it worked:
preg_replace.onlinephpfunctions.com/
fr.functions-online.com/preg_replace.html

But on my server, it doesn't work, I also tried a preg_match_all but it doesn't work too.

Here's the source code where I use it:
https://codeshare.io/GbrArM

Korvent
  • 48
  • 1
  • 11

0 Answers0