Guys
Thanks for the help. I solved it; and also solved that issues that forced me to do it this way. It's not eloquent but it works.
Appreciate the responses.
Thanks for the responses, guys.
given the following sequence, with spaces between the digits and a newline at the end
3 2 1/2 3 2 1 1/2 1 5 1/4
why for
if ($restrace =~/^(\d{0,2}\s\w{0,4}|\d\/\d|\d{0,2}\s\d\/\d|\d{0,2})\s(.*)/){
does $1 contain 3 2 instead of 3 2 1/2 why...
Please excuse my limited grasp of Perl and regular expressions.
I'm trying to match lines such as the following:
4 4 4 6 1/2 4 3/4 10 9 1/4 12 20 1/4
The line ends with a carriage return. The sequence is the same, with a number followed either by a fraction or another number followed by a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.