Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Apache statistics with perl

by hbm (Hermit)
on Apr 08, 2013 at 15:03 UTC ( #1027533=note: print w/replies, xml ) Need Help??


in reply to Apache statistics with perl

I suspect all of your regular expressions like this:

/([\d|\.]+)/gi

Can be simplified to this:

/([\d\.]+)/
  • In a bracketed character class, '|' is literal - not "or". (The whole class is "or'd".)
  • Digits and dots (and pipes) have no case, so you can omit the 'i' modifier.
  • You seem to be interested in one match, so you can omit 'g' as well.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-09-22 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?