note 79475 added to function.preg-match

From: Date: Thu, 29 Nov 2007 09:51:19 +0000
Subject: note 79475 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-132655@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 210.245.110.129 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/79475 Del: integrated -- https://master.php.net/note/delete/79475/integrated Del: useless -- https://master.php.net/note/delete/79475/useless Del: bad code -- https://master.php.net/note/delete/79475/bad+code Del: spam -- https://master.php.net/note/delete/79475/spam Del: non-english -- https://master.php.net/note/delete/79475/non-english Del: in docs -- https://master.php.net/note/delete/79475/in+docs Del: other reasons-- https://master.php.net/note/delete/79475 Reject -- https://master.php.net/note/reject/79475 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132655) next »