Regular Expressions 101

Community Patterns

DS002 - Get Project Number

0

Regular Expression
ECMAScript (JavaScript)

/
\d{3,15}[\/-]{1}\d{1,2}([\/-\s]{1}\d{1,2}|)(\s+\d{0,2}|)
/
gm

Description

Gets the project number from the extracted text fields from the PDF files.

Submitted by anonymous - a year ago