Hello, I have to extract a string (All characters) between two tags : Exemple : $var="some text 1 <title>Hello Every - Body * / dd 0,0,44</title> some text 2"; Code (markup): I need to extract Hello Every - Body * / dd 0,0,44 between the title tags from $var I think it may be done using preg_match but i don't know how to use [0-9] [a-z] stuff... Can YOU PLEASE HELP me ?
<?php $var="some text 1 <title>Hello Every - Body * / dd 0,0,44</title> some text 2"; if(preg_match('/<title>(.+)<\/title>/', $var, $matches)) print $matches[1]; ?> Code (markup):