preg-filter

PHP preg_filter() substitute in PHP<5.3?

Had to deploy some PHP code onto a shared server with only PHP5.2.8. All code works EXCEPT for the preg_filter() call which was added in 5.3+ (and against which the code was written). Can anyone recommend an easy substitute for preg_filter() in PHP5.2? ...