Aug 16, 2006 #1 ksbrace Programmer Joined May 13, 2000 Messages 501 Location US Hello, I'm attempting to get the question marks between > ?????????????? </a> </font> Obviously, they will be sentences containing words, numbers and symbols. This is what I have: Code: preg_match ("/>\"([^`]*?)\"</a> </font>/", $match, $temp);
Hello, I'm attempting to get the question marks between > ?????????????? </a> </font> Obviously, they will be sentences containing words, numbers and symbols. This is what I have: Code: preg_match ("/>\"([^`]*?)\"</a> </font>/", $match, $temp);
Aug 16, 2006 2 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US This: Code: <?php $a = ">'twas brillig and the slithey toves </a> </font>"; preg_match ('@>([^<]*)</a>@', $a, $match); print '<html><body><pre>'; print_r ($match); print '</pre></body></html>'; ?> outputs: [tt]Array ( [0] => >'twas brillig and the slithey toves [1] => 'twas brillig and the slithey toves )[/tt] Want the best answers? Ask the best questions! TANSTAAFL! Upvote 0 Downvote
This: Code: <?php $a = ">'twas brillig and the slithey toves </a> </font>"; preg_match ('@>([^<]*)</a>@', $a, $match); print '<html><body><pre>'; print_r ($match); print '</pre></body></html>'; ?> outputs: [tt]Array ( [0] => >'twas brillig and the slithey toves [1] => 'twas brillig and the slithey toves )[/tt] Want the best answers? Ask the best questions! TANSTAAFL!