note 79475 rejected from function.preg-match by nlopess
| From: | nlopess@php.net | Date: | Thu, 29 Nov 2007 09:56:27 +0000 |
| Subject: | note 79475 rejected from function.preg-match by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-132656@lists.php.net to get a copy of this message | ||
Note Submitter: newbiephp at yahoo dot com
----
Sorry, my English is not very good.
I have a string:
<?php
$str = '<div class="post">
<div class="text01">...
<script type="text/javascript">
function myfunction(str)
{
dosomething();
}
</script>
<div class="post">
<div class="text01">...';
?>
I want to search string in tag <script> and get it.
Example: string search of $str is:
function myfunction(str)
{
dosomething();
}
Help me. Thanks