Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?<line_prefix>.*)\s{1}[\w//]{3}\s\d{2}\s(?<unit_price>[\d\.,]*)\s(?<discount>[\d\.,]*)\s(?<recharge>[\d\.,]*)\s(?<amount>[\d]*)\s(?<line_total>[\d\.,]*)\s*(?<line_sufix>(?!Exp).*)$
/
gm

Description

it identifies lines in an invoice

Submitted by Vladox - 4 years ago