Regular Expressions 101

Library entries

Identify lines on an invoice

Vote

1

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

Loading markdown...
Submitted by Vladox - 3 months ago