|
On 07/07/2014 10.33, steve donovan wrote:I think it should not be anchored: he said "input string might have some data before or after of given example values".
local lens = input:match('^Content%-Length%s*:%s+(%d+)%s+$')
To Austin: try removing the leading '^' and the trailing '$' from the pattern string.
--
Enrico