Function for generating case insensitive patterns for stdnse library

Rewanth Cool <[email protected]>
Newsgroups gmane.comp.security.nmap.devel
Message-ID <CAF-KJU++8_QvX9rTRFdnUyMEiQUjWjthgYqh0j-0+gNLwi9_qQ@mail.gmail.com>
I added a new function to the standard stdnse library which helps while
doing a case insensitive pattern matching work.

Of course, we can convert the string to be matched into lower case and then
use lower cased pattern for matching. But this is not suggested when you
are dealing with huge number of files or with large data. Converting the
complete file into lowercase is a bad idea (not so efficient and resource
consuming process) instead one can use this new function for generating a
new case insensitive pattern.

I made a PR #853 <https://github.com/nmap/nmap/pull/853> on the same and I
clearly explained the why stdnse should incorporate this new function in it
with best examples. Please review it over #853
<https://github.com/nmap/nmap/pull/853>for a better understanding.

Best regards,
Rewanth.

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.