Forum: Perl
Apr 22nd, 2005, 1:50 PM
|
|
Replies: 10
Views: 500
I only know how to match with that regular...
I only know how to match with that regular expression. How do I extract the three variables using it?
I'm actually using Python+scanf, but I posted here because I thought you all would be the best...
|
Forum: Perl
Apr 22nd, 2005, 1:28 PM
|
|
Replies: 10
Views: 500
Regular expressions - extracting what's found
I have a bunch of lines of the format
(02:25:26) user: message
More precisely, in the language of regular expressions,
(\d+:\d+:\d+) .+:.*
What's the easiest way to extract the timestamp, user,...
|