Created
September 1, 2010 16:39
-
-
Save MisterPhoton/560972 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"","1234567890","123456789012","default","""Salesperson One"" <1234567890>","SIP/1234-0da1c720","DAHDI/1-1","Dial","DAHDI/g2/1234567890","2010-08-31 21:06:34","2010-08-31 21:07:00","2010-08-31 21:07:00",26,0,"NO ANSWER","DOCUMENTATION" | |
"","1234567890","123456789012","default","""Salesperson One"" <1234567890>","SIP/1234-0da1c720","DAHDI/1-1","Dial","DAHDI/g2/1234567890","2010-08-31 21:06:34",,"2010-08-31 21:07:00",26,0,"NO ANSWER","DOCUMENTATION" | |
Modify this regex to be able to parse the second line, above, that is missing one timestamp: | |
"([^"]*)","([^"]*)","([^"]*)","([^"]*)","""([^"{3}]*)"{2} ([^"]+)","([^"]*)","([^"]*)","([^"]*)","([^"]*)","([^"]*)","([^"]*)","([^"]*)",([^,]*),([^,]*),"([^"]*)","([^"]*)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment