Jakarta Ant RegEx

Posted on 2006-04-06
Last Modified: 2010-03-31
Wasn't sure if this belonged here, but I figured Java experts would be the most equipped to help me...  Hopefuly. :)

I basically just want to parse the below sample perforce changelist  info and retrieve the date and timestamp so I can use that information.  For example from the below sample changelist info I want to pull out, "2006/04/05 23:06:34" so I can use it when synching (getting source down from Perforce).  I was thinking of having a seperate file ( with something similar to this:

==================== file
timestamp=2006/04/05 23:06:34

Here's the sample changelist info:
# A Perforce Change Specification.
#  Change:      The change number. 'new' on a new changelist.  Read-only.
#  Date:        The date this specification was last modified.  Read-only.
#  Client:      The client on which the changelist was created.  Read-only.
#  User:        The user who created the changelist. Read-only.
#  Status:      Either 'pending' or 'submitted'. Read-only.
#  Description: Comments about the changelist.  Required.
#  Jobs:        What opened jobs are to be closed by this changelist.
#               You may delete jobs from this list.  (New changelists only.)
#  EXTRAVIEW:   To close a job, remove the '<cli-ignore>' keyword from the job comment (or remove the entire comment).
#  Files:       What opened files from the default changelist are to be added
#               to this changelist.  You may delete files from this list.
#               (New changelists only.)

Change:      70131

Date:      2006/04/05 23:06:34

Client:      mea-trunk

User:      mea

Status:      submitted

      mea stuff...

Thanks in advance!
Question by:meaar
    LVL 92

    Accepted Solution

    be something like:


    Author Comment

    Objects, can you recommend a tutorial or something to quickly get me (a beginner)up to speed on regex?  Thanks for you help!
    LVL 92

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now