Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: mpn
Forum: Perl Apr 22nd, 2005, 1:50 PM
Replies: 10
Views: 500
Posted By mpn
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
Posted By mpn
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,...
Showing results 1 to 2 of 2

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:42 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC