Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Java 8

"
^(?<type>(?:ci-|cloud-)?[^-]+)[_-](?<version>\d+\.\d+\.\d+)(?<alpha>[-+]alpha)?(?:-(?<date>\d{8}))?[-+](?:(?<build>\d+).(?<builddate>\d{8}))?(?:[.-]?(?<sha>[A-Fa-f0-9]+(?:[.-]\d+)?))?(?:\.(?<arch>.+))?\.(?<fmt>.{3})
"
gm

Description

Matches various versions of build file filenames from our jenkins builds

Submitted by Sean Furrh - 3 years ago