how to use Complement operator in regular-exp?

The caret symbol can actually have two different meanings in regular expressions. Most of the time, it means to match the zero-length pattern for line beginnings. But if it is used at the beginning of a character class, it reverses the meaning of the character class. Everything not included in the listed character set is matched.

asked Sep 13, 2013 in Regular-exp by rajesh
edited Sep 12, 2013
0 votes

1 Answer

0 votes

Gary had a little lamb.
And everywhere that Gary
went, the lamb was sure
to go.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013