in reply to regex square brackets exceptions

Have a look at perlrequick:character classes , you will come to know to how to write character class in Perl.

Replies are listed 'Best First'.
Re^2: regex square brackets exceptions
by raybies (Chaplain) on Jun 21, 2011 at 13:36 UTC

    Actually I was already familiar with character classes as per that documentation... I'm teaching regex, and am interested in the differences between Perl and Java because I've got java programmers in the audience.

    Perl being what it is... one never knows if there isn't some little bit of syntactic sugar hidden away somewhere...

    But the short answer is, "No."