Add getSize method.
Add equals method.
Changed the toRangeString method to return ranges surrounded by square brackets.
Fix toRangeString method so it return the minimally correct string.
Add toRegExp method.