Archive for December, 2008

Happy New Year 2009

December 31, 2008

Hi all,


Wish you all a very happy new year 2009.

Let all you dreams come true this year.


December 30, 2008

The movie is like selling beer in a woodwards gripewater bottle.

The grownups don’t like the cover.

The children don’t like the taste.

None buys.

RegEx Lookup

December 14, 2008

Some quick reference for Regular Expressions:


/ / delimiters of the pattern

+ one or more of the preceding character

* zero or more of the preceding character

? zero or one occurence of the preceding character

[] match one of a group of alternatives

\ escape a special character

^ match at the beginning of the string

$ match at the end of the string

/^ $/ match entire string

\b match at word boundary

\B not at word boundary – opposite to \b

[^ ] excluding a set of alternatives

\d any digit

\D anything other than digit

\w any word character [_0-9a-zA-Z]

\W anything other than word character

\s whitespace

\S anything other than whitespace

. anything except newline

{n} n number of occurences of the preceding character

| OR operation

\1 \2 … saved patterns




/g match all possible patterns

/i ignore case

/m treat string as multiple lines

/o only evaluate once

/s treat string as single line

/x ignore white space in pattern




s/ substitution operator


/g change all occurences of the pattern

/i ignore case in pattern

/e evaluate replacement string as expression

/m treat string to be matched as multiple lines

/o evaluate only once

/s treat string to be matched as single line

/x ignore white space in pattern




tr/ translation


/c complement

/d delete all specified characters

/s squeeze-replace multiple identical output characters with a single character




(?: ) do not save the pattern in memory




/(?i) = /i

/(?m) = /m

/(?s) = /s

/(?x) = /x




(?= ) positive look ahead

(?! ) negative look ahead

(?# ) comments within pattern


~There’s more than one way to do it~TMTOWTDI

. Connecting the Dots .

December 9, 2008

This may or may not be true.

Even if its a fiction, its a good one.

~Do No Evil

Oh yeah.

December 9, 2008

I have fallen in love with the following pairs of words of late.

Core dumped

Segmentation fault

Memory leak

~Unix Users are a different kind of animal.

Foo – Bar

December 7, 2008

Okay. Let there be some history behind the ubiquitos variable names foo and bar. But I dint expect this. 

I am thinking of writing an RFC for the variable WTF. Wat say ?

Here we go.

December 7, 2008

 I wanted something to kill time. I thought that starting a blog will kill enuf time. So here we go.


~ An Idle mind is devil’s workshop