Regex for multiple payment processors addresses

Post Reply
ds2020
Posts: 784
Joined: 27 Aug 2020, 17:39
Contact:

Regex for multiple payment processors addresses

Post by ds2020 » 25 Apr 2024, 02:15

Code: Select all

// PerfectMoney
if (guid.match(/U\d{10}/)) {
    alert('It\'s a PerfectMoney address');
}

// WMZ (WebMoney USD)
if (guid.match(/Z\d{12}/)) {
    alert('It\'s a WMZ (WebMoney USD) address');
}

// WME (WebMoney EUR)
if (guid.match(/E\d{12}/)) {
    alert('It\'s a WME (WebMoney EUR) address');
}

// WMU (WebMoney UAH)
if (guid.match(/U\d{12}/)) {
    alert('It\'s a WMU (WebMoney UAH) address');
}

// WMR (WebMoney RUB)
if (guid.match(/R\d{12}/)) {
    alert('It\'s a WMR (WebMoney RUB) address');
}

// WMX (WebMoney Bitcoin)
if (guid.match(/X[0-9A-HJ-NP-Za-km-z]{32}/)) {
    alert('It\'s a WMX (WebMoney Bitcoin) address');
}

// Payeer
if (guid.match(/^P[0-9A-Za-z]{33}$/)) {
    alert('It\'s a Payeer address');
}

// Skrill
if (guid.match(/^S[0-9A-Za-z]{31}$/)) {
    alert('It\'s a Skrill address');
}

// Payoneer
if (guid.match(/^P[0-9A-Za-z]{20}$/)) {
    alert('It\'s a Payoneer address');
}

// Neteller
if (guid.match(/^4[0-9]{11}$/)) {
    alert('It\'s a Neteller address');
}

// AirTM
if (guid.match(/^A[1-9A-HJ-NP-Za-km-z]{25,34}$/)) {
    alert('It\'s a AirTM address');
}

Post Reply