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.
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.