Hi There,
I am trying to extract the number between two words.
Below is the code which am using but not getting any output.
Could you please help me to get the output.
Thanks
Jit
I am trying to extract the number between two words.
Below is the code which am using but not getting any output.
Could you please help me to get the output.
Code:
$x = "The start text always precedes 5 times
of the end text.";
if ($x=~ /The(.*)times(\d+)/) {
print "X:$1."
}
Jit
Comment