[ create a new paste ] login | about

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

PHP, pasted on Aug 27:
1
2
3
4
5
<?php
$str = "This is a male string.";
$str = preg_replace('/.*?((?:fe)?male).*/i', '$1', $str);
print $str;
?>


Output:
1
male


Create a new paste based on this one


Comments: