• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • 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

Description:
      mea stuff...

Thanks in advance!
0
meaar
Asked:
meaar
  • 2
1 Solution
 
objectsCommented:
be something like:

Date:\s*(.*)
0
 
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!
0
 
objectsCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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