Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?P<company>.+)\Wzkx\s(?P<address>.+)\Wxkz\s(?P<zip>.+\D)\W(?P<aprilia>\d)\W(?P<arcticcat>\d) (?P<bmwmotos>\d)\W(?P<canam>\d)\W(?P<derbi>\d)\W(?P<ducati>\d)\W(?P<harleydavidson>\d)\W(?P<hondamotos>\d)\W(?P<husqvarna>\d)\W(?P<kawasaki>\d)\W(?P<keeway>\d)\W(?P<ktm>\d)\W(?P<kymco>\d)\W(?P<motoguzzi>\d)\W(?P<mvagusta>\d)\W(?P<peugeotmotos>\d)\W(?P<piaggio>\d)\W(?P<polaris>\d)\W(?P<suzukimotos>\d)\W(?P<sym>\d)\W(?P<triumph>\d)\W(?P<vespa>\d)\W(?P<victory>\d)\W(?P<yamaha>\d)\W(?P<othermotos>\d)
/
gm

Description

0 = not an authorized dealership for the respective brand 1 = authorized dealership for the respective brand

Submitted by anonymous - 5 years ago