Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How do I test if a bit has been set in a bitstring

by AnomalousMonk (Abbot)
on Apr 25, 2013 at 15:35 UTC ( #1030692=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: How do I test if a bit has been set in a bitstring
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-07-08 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls