...

View Full Version : Orientation of objects



HG3
11-07-2011, 02:43 PM
Hello everybody, I need help to search all that is between "()" as in the example below, more my script not ta working .
Can anyone help me?



<?php

$txt = "
<?php
//bla bla bla
forum(hello condingforums...
bla...bla...bla...bla..bla
bla...bla...bla...bla..bla);
?>
";

preg_match_all('#\(\w+\)#', $txt, $matches);
print_r($matches);

?>

Adee
11-07-2011, 03:02 PM
<?php

$txt = "
<?php
//bla bla bla
forum(hello condingforums...
bla...bla...bla...bla..bla
bla...bla...bla...bla..bla);
?>
";

preg_match_all("/\\(.*\\)/si", $txt, $matches);
print_r($matches);

?>

HG3
11-07-2011, 03:13 PM
thank you Adee =)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum