php result h3 href themes php action activate 038 template coolwater 0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<?php
$result='<h3><a href="themes.php?action=activate&#038;template=coolwater&#038;stylesheet=coolwater&#038;_wpnonce=c4c3dd40c7">CoolWater</a></h3>';
$regex = '/<a href="themes.php?action=activate&#038;template=coolwater&#038;stylesheet=coolwater&#038;_wpnonce=(.+?)">/';
preg_match($regex,$result,$match);
$wpnonce = $match[0];
echo $wpnonce;
?>