vpa-regex

1.0.0 • Public • Published

vpa-regex Build Status

VPA Regex Pattern returns a regex that matches Virtual Payment Address (VPA).

Use it for picking up VPA's.

Install

$ npm install vpa-regex

Usage

const vpaRegex = require('vpa-regex');
 
// Contains a vpa
'siddharth@ybl has requested ₹500'.match(vpaRegex());
//=> ['siddharth@ybl']
 
'You have paid ₹500 to siddharth@ybl'.match(vpaRegex());
//=> ['siddharth@ybl']

License

MIT

Package Sidebar

Install

npm i vpa-regex

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.43 kB

Total Files

7

Last publish

Collaborators

  • rajeevdesai