Specific regex issue requiring assistance -


here provide example of line log file: [13/02/2013 16:53] [join] john_doe has joined server (40:12.34.56.78)

to explain in english is: [date time] [join] firstname_lastname has joined server (userid:ip address)

i wish extract list of names , ip's in csv format.

do know regex expression run on each line achieve this?

in case, reveal: john_doe,12.34.56.78

if want learn regular expressions:

http://www.regular-expressions.info/tutorial.html

this site contains general tutorial , tons of info on different regex implementations.


if not want learn regular expressions:

http://txt2re.com/

this site lets build regular expressions entering example pattern , clicking on parts need.


the regex you've asked simple shouldn't posted here, not useful other users.


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -