I am learning how fetching strings in Erlang works with Regular Expressions. Please explain to me why when I execute regular expression for a list of elements whose values are a sequence from 0 to 255, values greater than 127 fall into the resulting list?
Expected = true,
ValidCharacterList = lists:seq(0, 255),
RegularExpression = "[[:ascii:]]",
{ok, MP} = re:compile(RegularExpression),
{match, _} = re:run(ValidCharacterList, MP),
Result = true,
?assertEqual(Expected, Result).
The result is all elements of that sequence (from 0 to 255).