lua-users home
lua-l archive

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


Hi there,

Should have performed a search in the list first, but I’m afraid I cannot come out with a good query. Here’s the question: Is there a library that can calculate the ratio of numberic or alphanumeric words in a given string (the actual scenario is to use a document’s content so the string will be very long)? E.g  for string “34 aaa A-7SXD bbb ccc”, the ratio is calculated as 0.4.

 

Thanks.