lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi All
I can have an input string with any one of below formats

\r\nContent-Length: 100 \r\n
\r\nContent-Length    :      100 \r\n
\r\nContent-Length:100    \r\n

Input string can be of any one value from above examples

My aim is to extract 100 as an integer.

What is the best way to do it.

Please note that, input string might have some data before or after of given example values.

Many thanks in advance
Austin