Home >Backend Development >PHP Tutorial >Please teach me how to write regular rules.

Please teach me how to write regular rules.

WBOY
WBOYOriginal
2016-09-08 08:43:54792browse

RT, how to write a regex about

.

Reply content:

RT, how to write a regex about

.

Can the question be more detailed?

$str="

4444

555

";
$regex='/

(.*?)

/i';
preg_match_all($regex, $str, $content);
echo '
';
var_dump($content[1]);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn