オンラインでの PHP の通常のマッチングなど
たとえば、この入力の値と一致します
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <input type="text" class="shareIpt j-copyipt" value="xxxxxxxxxxxxxxxxxxxxxxx">
[ユーザー:root 時刻:14:58:15 パス:/home/liangdong/php]$ cat preg.php <?php $str = <<<EOF <input type="text" class="shareIpt j-copyipt" value="xxxxxxxxxxxxxxxxxxxxxxx"> EOF; $nmatches = preg_match('/class="shareIpt j-copyipt" value="(.*)"/iUs', $str, $matches); エコー $matches[1] .PHP_EOL; ?> [ユーザー:root 時刻:14:58:16 パス:/home/liangdong/php]$ php preg.php xxxxxxxxxxxxxxxxxxxxxxxx <div class="clear"></div>