• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Jakarta Ant RegEx

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 (samplefile.properties) with something similar to this:

samplefile.properties 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!
  • 2
1 Solution
be something like:

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now