jeudi 3 août 2017

Regex for Multiline Code in Javascript

Require Multiline Regex for,

=/A9999XYZ100T0944
=,000025=A99971312345600=>014032
=}013032&,1000000000000XYZ123

Following pattern works if the above is in Single Line,

^(((\=+)?([0-9a-zA-Z]{5}))|((?\=/)?([0-9a-zA-Z]{16}))|((?\=\,)?([0-9a-zA-Z]{6}))|((?\=?([0-9a-zA-Z]{15}))|((?\=>)?([0-9a-zA-Z]{6}))|((?\=})?([0-9a-zA-Z]{6}))|((?\&\,1)?([0-9a-zA-Z]{18})))+$

=/A9999XYZ100T0944=,000025=A99971312345600=>014032=}013032&,1000000000000XYZ123

Aucun commentaire:

Enregistrer un commentaire