source:
branches/dev/html/test/adachi/test4.php
@
14558
| Revision 14558, 232 bytes checked in by adati, 19 years ago (diff) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | $str = 'test@<script>alert(document.cookie)</script>.com;'; |
| 4 | $pt = "/<script.*?>|<\/script>/"; |
| 5 | |
| 6 | preg_match_all($pt, $str, $match) |
| 7 | |
| 8 | //$p = preg_replace("/<script.*?>|<\/script>/", '<script>', $value); |
| 9 | |
| 10 | var_dump($match); |
| 11 |
Note: See TracBrowser
for help on using the repository browser.
