0

I have some text which I need to split into 2 elements based on delimiters "-:." (dash, colon or period) The below works for me :

$exploded_val = preg_split( "/[-:\.]/", $orig_val );

Problem is that some of the text have multiple periods, in which case it doesn't work. Can you help please? example text "Statue of Liberty....North America" "Leaning tower-pisa" "great wall:china"

SIndhu
  • 677
  • 3
  • 15
  • 21

0 Answers0