Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

regex

def log = """
COMMIT_HASH_72a1da4369cd73c35bb4e5a5bee3eb570b3aed79_COMMIT_HASH SUBJECT_commit 3_SUBJECT AUTHOR_Romain_AUTHOR DATE_2019-02-07 16:51:23 +0100_DATE
COMMIT_HASH_6927bc4b44ef252f992a2ce4f2ee0908d32edbc2_COMMIT_HASH SUBJECT_commit 2_SUBJECT AUTHOR_FX_AUTHOR DATE_2019-02-07 16:51:23 +0100_DATE
COMMIT_HASH_8d8a42dc708c4b38b608386b0b4d27d10264e12c_COMMIT_HASH SUBJECT_commit 1_SUBJECT AUTHOR_Romain_AUTHOR DATE_2019-02-07 16:51:23 +0100_DATE
"""

def regex = ~'/COMMIT_HASH_(.*)_COMMIT_HASH/'
println regex.matcher(log).matches()

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.