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 hour 11 min ago
10 hours 39 min ago
11 hours 29 min ago
15 hours 2 min ago
19 hours 26 min ago
19 hours 48 min ago
21 hours 57 min ago
1 day 7 hours ago
1 day 12 hours ago
1 day 14 hours ago