You are here

public static function FeedImportFilter::regexReplace in Feed Import 7.3

Same name and namespace in other branches
  1. 8 feed_import_base/filters/feed_import_default_filters.php \FeedImportFilter::regexReplace()

Performs a regex replace.

File

feed_import_base/filters/feed_import_default_filters.php, line 797
Provides filters for feed import.

Class

FeedImportFilter
This class contains default filters for feed import.

Code

public static function regexReplace($field, $regex, $new) {
  return preg_replace($regex, $new, $field);
}