Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: regex optional word match

by Rahul Gupta (Sexton)
on Jul 26, 2012 at 11:31 UTC ( #983829=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    String1: "REMOTE      [Mon Jul 16 21:49:33 2012] @@ [ueh1] [TNT] [2049
    +0] [1916]  0.0- 1.0 sec  0.33 MBytes  2.74 Mbits/sec  6.056 ms    0/ 
    + 233 (0%)".
    
    String2: "REMOTE      [Mon Jul 16 21:49:34 2012] @@ [pdn1] [SSH] [2049
    +9] [3]  1.0- 2.0 sec  0.34 MBytes  2.86 Mbits/sec".
    
  2. or download this
     <m/^REMOTE\s+\[(.*?)\]\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+\[(.*?)\]\s+
    +(.*?)sec\s+(.*)MBytes\s+(.*)Mbits\/sec>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-11-15 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (180 votes). Check out past polls.

    Notices?