Regular Expressions 101

Library entries

LLR_get_invoice_details

Vote

0

Regular Expression
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

Loading markdown...
Submitted by anonymous - 2 years ago