Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
bitcoincash-regex
Advanced tools
Regular expression for matching Bitcoin Cash (BCH) Legacy and CashAddr addresses.
Regular expression for matching Bitcoin Cash (BCH) Legacy and CashAddr addresses.
~ ❯❯❯ npm install bitcoincash-regex
const bchRegex = require('bitcoincash-regex')
bchRegex().test('nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k')
//=> true
bchRegex({exact: true}).test('nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k foo')
//=> false
bchRegex({exact: true}).test('19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k')
//=> true
bchRegex.format('cashaddr', {exact: true}).test('bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a')
//=> true
bchRegex.format('cashaddr', {exact: true}).test('19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k')
//=> false
'nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k unicorn bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a rainbow'.match(bchRegex());
//=> ['19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k', 'bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a']
Returns a regex for matching BCH addresses.
Type: boolean
Default: false
(Matches any BCH address in a string)
Only match an exact string. Useful with RegExp#test()
to check if a string is an BCH address.
Returns a regex for matching specific BCH format addresses.
Type: string
Supported Formats: legacy
, cashaddr
Match a specific BCH address format.
Type: boolean
Default: false
(Matches any BCH address in a string)
Only match an exact string. Useful with RegExp#test()
to check if a string is an BCH address.
MIT © Nikolaos Kamarinakis
FAQs
Regular expression for matching Bitcoin Cash (BCH) Legacy and CashAddr addresses.
The npm package bitcoincash-regex receives a total of 150 weekly downloads. As such, bitcoincash-regex popularity was classified as not popular.
We found that bitcoincash-regex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.