aspose file tools
The moose likes Java in General and the fly likes Regular expression for a message format Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Regular expression for a message format" Watch "Regular expression for a message format" New topic
Author

Regular expression for a message format

monica singh
Greenhorn

Joined: Jan 04, 2009
Posts: 26
I am trying to come up with a regular expression for the following log format.

Severity Mar 10 04:05:43 Mar 10 04:05:43 hostname Logged in to the server

Could anyone try out the same thing.
Thanks.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Hi Monica,

What have you got so far?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
Monica,

That does seem like a fairly simple regex. What are you trying to do with the regex? And why is the date shown twice?

John.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regular expression for a message format
 
Similar Threads
Read log file from date to date as one object
How to achieve this Requirement
Find TimeStamp in a string
Apache Tomcat: startup failed due to previous errors
how to display all months of a particular year according to the following rule