Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
Subtotal\s{0,99}(?<Subtotal>\D\d+...)\s{0,99}(?=Tax)Tax\s{0,99}(?<Tax>\D\d+...)\s{0,99}S&H\s{0,99}(?<S_H>\D\d+...)\s{0,99}S&H\s{0,99}Tax\s{0,99}(?<S_H_Tax>\D\d+...)\s{0,99}Total\s{0,99}(?<Total>\D\d+...)|Subtotal\s{0,99}(?<Subtotal_notax>\D\d+...)\s{0,99}(?=S&H)\s{0,99}S&H\s{0,99}(?<S_H_notox>\D\d+...)\s{0,99}S&H\s{0,99}Tax\s{0,99}(?<S_H_Tax_notax>\D\d+...)\s{0,99}Total\s{0,99}(?<Total_notax>\D\d+...)
/
g

Description

no description available

Submitted by anonymous - 5 years ago