in reply to Re: Question regarding a regex
in thread Question regarding a regex

> Unless the hyphen is the very first character, it signifies a range.

or the very last.

DB<1> p '-' =~ /[a-]/ 1 DB<2> p '-' =~ /[a- ]/ Invalid [] range "a- " in re ..

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery