[ create a new paste ] login | about

Link: http://codepad.org/YgIWjrlp    [ raw code | output | fork ]

PHP, pasted on May 2:
1
2
3
4
5
<?php 
$searchs = "ver ae as ads dase asda frasad ae aes ads ad hag hags";
echo $search=rtrim(preg_replace('/\b([a-z]{1,2}|[a-z]{2}s)\b/',' ',' '.$searchs.' '));
echo "<br/>".$str=preg_replace('/[\s]+/',' ',$search);
?>


Output:
1
 ver       dase asda frasad         hag hags<br/> ver dase asda frasad hag hags


Create a new paste based on this one


Comments: