in reply to Re: How do I test if a bit has been set in a bitstring
in thread How do I test if a bit has been set in a bitstring
my ($flags) = $filename =~ / \. ([0-9a-fA-F]+) $ /x;
[0-9a-fA-F] is also available (and, IMHO, preferable) as the [[:xdigit:]] POSIX character class. See POSIX Character Classes in perlre for info on this and its many Unicode \p{Property} cousins.
|
|---|