You are here

function openlayers_views_style_data::preg_explode in Openlayers 7.2

Split string according to first match of passed regEx index of $regExes

File

modules/openlayers_views/views/openlayers_views_style_data.inc, line 452
This file holds style plugin for OpenLayers Views

Class

openlayers_views_style_data
@class Extension of the Views Plugin Style for OpenLayers

Code

function preg_explode($regEx, $str) {
  $matches = array();
  preg_match($this->regExes[$regEx], $str, $matches);
  return empty($matches) ? array(
    trim($str),
  ) : explode($matches[0], trim($str));
}