Codice PHP:
#[url]www.sito.com/blabla[/url]
preg_match("#(([\\w\\-]+\\.)?([\\w\\-]+)\\.(\\w+))(\\/?([^\\s]+)?)?#i", "www.sito.com/blabla", $matches);
print_r($matches);
#<meta title="BlaBlaBla" />
preg_match("#\\<\\s+?meta\\s\\s+?title\\s+?\\=\\s+?\\"(.+)?\\"\\s+?/\\>#", "<meta title=\\"BlaBlaBla\\" />", $matches);
print_r($matches);
#<title>BlaBlaBla</title>
preg_match("#\\<title\\>(.+?)\\</title\\>#", "<title>BlaBlaBla</title>", $matches);
print_r($matches);

Rispondi quotando