0

I need to detect all links. Get an array with all <a ...>...</a>.

I tried this but it will get just the last </a>.

preg_match_all("|<a .+>.*</a>|s", $emailBody, $links);

If I skip s it works for all expect those that are divided by new lines.

tttpapi
  • 887
  • 2
  • 9
  • 32

0 Answers0