Skip to content

Instantly share code, notes, and snippets.

@MisterPhoton
Created September 1, 2010 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MisterPhoton/560972 to your computer and use it in GitHub Desktop.
Save MisterPhoton/560972 to your computer and use it in GitHub Desktop.
"","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