Posts: 1,016
Thanks: 7
Thanked 56 Times in 51 Posts
maybe this gives you a hint:
PHP Code:
<?php
$str = "asdasasasd cc \"!info@example.tld\" asdasdasdsad";
if( preg_match("/cc \"(.*)\"/", $str, $matches) ) { var_dump($matches); } else { //String was not found }
?>
where $matches[1] would be the string within "". You might also think of using another regex to match a more or less real syntax for emailadresses instead of matching any string between "" ( -> (.*) ).
The Following User Says Thank You to Ben For This Useful Post:
Recent comments
1 day 8 hours ago
1 day 8 hours ago
1 day 13 hours ago
1 day 20 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 9 hours ago
2 days 13 hours ago
2 days 14 hours ago