frankx: String finden

Beitrag lesen

Hellihello

  
<?php  
  
$subject = '<span class=a>www.<b>de</b>.selfhtml.org/ - 25k - </span>';  
$pattern = '~<\/[b]>(.*?)\/~';  
preg_match_all($pattern, $subject, $matches);  
var_dump ($matches);  
  
?>  

bringt:

array(2) {
  [0]=>
  array(1) {
    [0]=>
    string(18) "</b>.selfhtml.org/"
  }
  [1]=>
  array(1) {
    [0]=>
    string(13) ".selfhtml.org"
  }
}

Dank und Gruß,

frankx

--
tryin to multitain  - Globus = Planet != Welt