I need to extract the text below.
SIGNAL 1 19 Potential.
CHAIN 20 873 104 kDa microneme/rhoptry antigen.
/FTId=PRO_0000232680.
PROPEP 874 893 Removed in mature form (Potential).
/FTId=PRO_0000232681.
COMPBIAS 215 220 Poly-Leu.
COMPBIAS 486 683 Lys-rich.
COMPBIAS 854 859 Poly-Arg.
LIPID 873 873 GPI-anchor amidated aspartate
(Potential).
I want to extract the two numbers separated by a space into two valuables $start and $end.
The CAPITAL letter term is stored in another variable $strand.
example after extraction for the first line.
$strand=SIGNAL;
$start=1;
$end=19;
$text=Potential.
for line two, the $text should like this
104 kDa microneme/rhoptry antigen. /FTId=PRO_0000232680. (joint with the next line).
I have tried to extract the numbers with regex /[0-9]+ [0-9]+/ after trim each line. But it doesn`t work. (Actually I intend to obtain the number in the format like this $num=1 19 [line 1]). Don`t know why? Is my regex wrong?
SIGNAL 1 19 Potential.
CHAIN 20 873 104 kDa microneme/rhoptry antigen.
/FTId=PRO_0000232680.
PROPEP 874 893 Removed in mature form (Potential).
/FTId=PRO_0000232681.
COMPBIAS 215 220 Poly-Leu.
COMPBIAS 486 683 Lys-rich.
COMPBIAS 854 859 Poly-Arg.
LIPID 873 873 GPI-anchor amidated aspartate
(Potential).
I want to extract the two numbers separated by a space into two valuables $start and $end.
The CAPITAL letter term is stored in another variable $strand.
example after extraction for the first line.
$strand=SIGNAL;
$start=1;
$end=19;
$text=Potential.
for line two, the $text should like this
104 kDa microneme/rhoptry antigen. /FTId=PRO_0000232680. (joint with the next line).
I have tried to extract the numbers with regex /[0-9]+ [0-9]+/ after trim each line. But it doesn`t work. (Actually I intend to obtain the number in the format like this $num=1 19 [line 1]). Don`t know why? Is my regex wrong?
