Regular Expressions 101

Community Patterns

Dec 17 Regex Matt Challenge

0

Regular Expression
PCRE (PHP <7.3)

/
(?i)^(?<datetime>[^\s]+)(?:[\s]*)[^\t\n]*\tVendorID(?<VendorID>\d+)(?:[\s]*)[^\t\n]*\tCode=(?<Code>[]+)(?:[\w]*)[^\t\n]*\tAcctID-(?<AcctId>[]+)(?:[\w]*)[^\t\n]*\tProductName.(?<ProductName>:"\w+\s+\d+\w+\s+\d+'\s+\w+\s+\w+"|"\w+\s+\w+"|"\w+\s+\w+\s+\w+\s+\d+'"|"\w+-\d+GB"|"\w+\s+\w+\s+\d+\s+\w+")\sPurchasePrice-(?<PurchasePrice>[^\s]+)
/
g

Description

no description available

Submitted by anonymous - 7 years ago