Regular Expressions: An Introduction
Published: January 12, 2004
User Rating: 8.9 (282 votes)
Character Class
Character class is a set of characters which are grouped together and used for matching A CHARACTER. In simple terms it would mean "match a character against any one of these (set of) characters". Its that simple. But how we use these, unlocks there power.
Character class or character set is defined by putting the characters in the the square brackets. []
Also if the characters you want to use in the sequence, then you don't even have to type them all, just type the first character, followed by dash (-), followed by the last character. This called defining a character range.
Negitive character class is like a character class but the characters are EXCLUDED for matching. In simple terms it would mean "match a character which is NOT FROM these (set of) characters".
Character class or character set is defined by putting the characters in the the square brackets and starting with a caret. [^]
About
Amit Arora is web developer with expertise in developing eCommerce enabled websites for the businesses.

Monitored by Site24x7
Uptime