I have the following string: SL2.40ch12:53884872-53885197.
I would like to assign SL2.40ch12 to $chromosome, 53884872 to $start and 53885197 to $end. What's an efficient way using regular expression for doing this?
Here's how I tried doing it but my regex is off.
my $string = SL2.40ch12:53884872-53885197
my $chromosome =~ /^*\:$/
my $start =~ /^+d\-$/
my $end =~ /^-+d\/
thanks