- A program that parses the stdout of the finger command (which is issued for the name of all subdirectories of /home/ ) and then issues an id command for each user on the server of my university. This way I made a 250KB textfile containing usernames, realnames, registration numbers, emails and years of registration; just by organizing information that is normally available by using these two commands. Of course this program in it's present form works correctly only for my university...
- A simple crawler. After making the main crawler part I tried to find something more useful to collect than emails but I came up with nothing so I made it seek email addresses. (but I hate spam :-P )
Saturday, December 15, 2007
Pattern matching
This week I used for my first time (at least seriously) the pattern matching functions of Lua. I am amazed of how powerful they are! I made two programs using them.
Categories:
My Progs,
Programming
Subscribe to:
Post Comments (Atom)
Popular Posts
-
This article probably also applies to: VGN-FZ38M Yeap I bought it. I though that since it had an NVidia card and it was Centrino based etc i...
-
It seems that the most popular article on this blog is " How to make portable applications " written back in 2007. Reading it aga...
-
Don't read this article. I've written a much better one which you can find here . The purpose of this (late-night) post is to sho...
I'm amazed at how poorly documented they are. Or perhaps how poorly the documentation is organized.
ReplyDeleteThey may have made something neat with Lua pattern matching, but pcre remains the best, if only because it's much easier to find out how to use it ;-)
I kinda like Lua's documentation. It is small anyway so I siply read it all and remember most of the function, then I only come back to read about patters (ctrl+f "patterns") etc...
ReplyDelete;-)
I don't know pcre but I will give it try. :-)