lundi 16 septembre 2019

Can somebody please please help me on Spiltting the package name in Ruby

Can somebody please please help me on splitting the below name in Ruby

package= AB-JACK_ABCD_gt_dkd_3-2-2-1-3.2.2.1-GIT.x86_32.exe

fullname= package.spilt
version= package.spilt
release= package.spilt

The following output need to be printed   
puts fullname >> ABCD_gt_dkd_3-2-2-1  
puts version >> 3.2.2.1  
puts release >> GIT  

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire