in reply to regexp question

Note that, in addition to MVS' answer, your demonstration here would print "end." even if it behaved as you previously expected!

Replies are listed 'Best First'.
Re^2: regexp question
by ramprasad27 (Sexton) on Oct 28, 2011 at 07:15 UTC
    oh well, you are rite but waht if I have other than '.' at the end, it doesnt match, meaning it doesnt hav special meaning inside character class

      That's correct; but .. uh, you might as well just use . for that!