wspringer/preon — Issue #11: Make BoundString.match() a regex 
Author: olerass
Created: 2012-03-02 16:01:25+00:00
State: open

Currently it is only possible to match an exact string. I think it would be useful to make the match parameter a regex, or more precisely make FixedLengthStringCodec and NullTerminatedStringCodec treat the string as a regex.

That way it also makes sense to have a match parameter for the NullTerminatedStringCodec, because currently it does have a match parameter but it isn't used which is confusing. After all if you don't know the length of the string how are you supposed to specify a match for it in exact terms? A regex would solve this and provide much more flexibility.