Fix sports regex

Fix the sports regex changing the place of operands in disjoint of regex.
The problem was that the empty string matched the global regex so the days
regex could never be reached. Moving the days regex before the global regex
fixes this problem because the days must be present in the string to be
matched by the days regex.

--HG--
extra : histedit_source : eda5a5c4db6a46abea03ca062ca767159aadf62c
Refactoring days_list regex

Decreased code duplication

--HG--
extra : histedit_source : a162d8ecf99e0a40b63a08b6d674e82b62e7bcbe
Change interval rules for day list

--HG--
extra : histedit_source : 14ac2e7f92e95d31dde8b878ffe804915f2c2f7a
Sports regex support multiple lines of days

The sports regex now supports multiple lines of day periods that specify own
times and prices.
Change test code to show this in action.

--HG--
extra : histedit_source : c10213d5579dbd63f51840ceea26c4866cef2ef0
Different names for different lines

Different names for the subpatterns, containing the line number in the end.
Before this change, the last line overwrote the previous. This can be done in
other means, like giving a name to the line and then parsing the lines one by
one. However, this one is probably easier to do for now. It should be changed
in the future.

--HG--
extra : histedit_source : eafcc24405fb72f431a91b39f4c55e34c07c83b1
Fix sports regex

$interval variables were null because global directive does not
take values from parent function but from global variables.

--HG--
extra : histedit_source : c5e7979af2d1c12009c4cb86c310980e63f5996e
Remove concatenation in echo

--HG--
extra : histedit_source : 7952000ccd4b9e52709fd37903f89b920eed3621
Change sports regex algorithm

Now it first checks if it matches the sport, then if it matches the general
pattern, then the days pattern and then the global pattern.

--HG--
extra : histedit_source : 8fa5da1e1ad9c8ebaf7cb60018ec3cf169faec25
Remove different names for different lines

Now each lines is parsed one by one so no different names are needed.
Such thing can be implemented for day lists too.
This greatly simplifies the resulting regular expression.

--HG--
extra : histedit_source : 7158d7b4ca7b04848b09937ce92916ef81973a7e
Sports parsing correctly line by line

Complete the changes started in the last commit.
Remove newline from testing code because newlines
are converted to commas by previous function.

--HG--
extra : histedit_source : b5ebe829d485142c9524fa1f75547a1a1d8a3149