[Solved] extract string using ruby regex


You can try this also

2.1.2 :007 > s = "The Fashion Project - The Project of Fashion-Technology and Science-institute"
 => "The Fashion Project - The Project of Fashion-Technology and Science-institute" 
2.1.2 :008 > s.split(/\s[-\b]\s/)
 => ["The Fashion Project", "The Project of Fashion-Technology and Science-institute"] 
2.1.2 :009 >

1

solved extract string using ruby regex