Regular Expressions 101

Community Patterns

GALLASTEGUI

1

Regular Expression
PCRE (PHP <7.3)

/
^(?<expedicion>\S+(?:\s{1,3}\S+)*)\s+(?<fecha>\d{2}\/\d{2}\/\d{2})\s+(?<referencia>\S+(?:\s\S+)*)\s+(?<remitente>\S+(?:\s\S+)*)\s+(?<num>\d+)\s+(?<nombre>\S+(?:\s\S+)*)\s+(?:\D+)(?<kilos>\d+)\s+(?<importe>\d+(?:[.,]\d+)+)\s+
/
gmi

Description

no description available

Submitted by neosystems - 8 years ago