anyone can help me to make regular expression
$string=" xxxxx xxxxx <body border='0'> <script language=javascript> ... word1 ... word2 ... word3... word4 ... </script>
";
i want to remove all word from that string if that string have minimal three word'x'
preg_replace(); how to make that regex?[code ]
$string="
xxxxx
xxxxx
<body border='0'>
<script language=javascript>
...
word1 ... word2 ... word3... word4
...
</script>
";
i want to remove all word from that string if that string have minimal three word'x'
preg_replace(); how to make that regex?