monero-regex

授权协议 MIT License
开发语言 JavaScript
所属分类 程序开发、 正则表达式工具
软件类型 开源软件
地区 不详
投 递 者 郏稳
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

monero-regex XO code style

Regular expression for matching Monero (XMR) addresses

Install

~ ❯❯❯ npm install monero-regex

Usage

const moneroRegex = require('monero-regex');

moneroRegex().test('nodejsrocks 47BnvD18P456f4KJUBKPS3Rqa97LrTaeqJ5NFYmjQM6nVoz6TBv4rJ24GZk883BNo22fAKbr8BSuTjhQC6K7DsSJFa8SHDs');
//=> true

moneroRegex({exact: true}).test('nodejsrocks 47BnvD18P456f4KJUBKPS3Rqa97LrTaeqJ5NFYmjQM6nVoz6TBv4rJ24GZk883BNo22fAKbr8BSuTjhQC6K7DsSJFa8SHDs foo');
//=> false

moneroRegex({exact: true}).test('47BnvD18P456f4KJUBKPS3Rqa97LrTaeqJ5NFYmjQM6nVoz6TBv4rJ24GZk883BNo22fAKbr8BSuTjhQC6K7DsSJFa8SHDs');
//=> true

'nodejsrocks 47BnvD18P456f4KJUBKPS3Rqa97LrTaeqJ5NFYmjQM6nVoz6TBv4rJ24GZk883BNo22fAKbr8BSuTjhQC6K7DsSJFa8SHDs unicorn 42oAxV3DVXXG3HhyCyi2xaPukKXbip9Sx1YuJtoCqjZRSze4tYCq7n3VUswDBFV59Zev8yfHSZro4TUwXumtRWnQ8xQipkC rainbow'.match(moneroRegex());
//=> ['47BnvD18P456f4KJUBKPS3Rqa97LrTaeqJ5NFYmjQM6nVoz6TBv4rJ24GZk883BNo22fAKbr8BSuTjhQC6K7DsSJFa8SHDs', '42oAxV3DVXXG3HhyCyi2xaPukKXbip9Sx1YuJtoCqjZRSze4tYCq7n3VUswDBFV59Zev8yfHSZro4TUwXumtRWnQ8xQipkC']

API

moneroRegex([options])

Returns a regex for matching Monero (XMR) addresses.

options.exact

Type: boolean
Default: false (Matches any XMR address in a string)

Only match an exact string. Useful with RegExp#test() to check if a string is an XMR address.

Related

  • ethereum-regex - Regular expression for matching Ethereum (ETH) addresses.
  • litecoin-regex - Regular expression for matching Litecoin (LTC) addresses.
  • bitcoincash-regex - Regular expression for matching Bitcoin Cash (BCH) addresses.
  • dash-regex - Regular expression for matching Dash addresses.
  • ripple-regex - Regular expression for matching Ripple (XRP) addresses.
  • neo-regex - Regular expression for matching NEO addresses.
  • dogecoin-regex - Regular expression for matching Dogecoin (DOGE) addresses.

License

MIT © Nikolaos Kamarinakis

  • https://github.com/fireice-uk/xmr-stak-cpu   xmr-stak-cpu安装   xmr-stak-cpu是一个用于cpu计算的开源软件,下面记录在ubuntu17.04下的安装过程 sudo apt-get -y install git git clone https://github.com/fireice-uk/xmr-stak-cpu.git su

  • Monero GUI Wallet发送交易源码分析 源码: https://github.com/monero-project/monero-gui Monero GUI Wallet 使用了 QML技术 Transfer.qml Rectangle { id: root signal paymentClicked(string address, string paymentId,

  • 目前boost regex性能更优,使用更广泛。c++11的Regular expressions library的std::regex,gcc4.8支持的不好,待改进。 Boost regex的基本介绍和一些样例之后,发现这个设计完全跟C++11一样啊,只要把regex调用的命名空间从std换成boost似乎就好了,当然前提是你已经安装好了boost库,编译时加上链接选项-lboost_rege

  • 1. 代码下载并切换到指定commit 切换到 bp-multi-aggregation 分支的7f964dfc8f15145e364ae4763c49026a3fab985d commit. git clone https://github.com/moneromooo-monero/bitmonero.git cd bitmonero git checkout 7f964dfc8f Bull

  • 参考: https://www.jb51.net/article/138515.htm https://blog.csdn.net/yangbingzhou/article/details/51352648

 相关资料
  • Monero Copyright (c) 2014-2021 The Monero Project. Portions Copyright (c) 2012-2013 The Cryptonote developers. Table of Contents Development resources Vulnerability response Research Announcements Tra

  • Monero JavaScript Library A Node.js library for creating Monero applications using RPC and WebAssembly bindings to monero v0.17.2.3 'Oxygen Orion'. Supports wallet and daemon RPC clients. Supports cli

  • JavaScript miner for the cryptocurrency Monero Blockchain (XMR) using Coin-Hive �� Use Client's CPU Power Monero is different. To mine Monero, you have to calculate hashes with an algorithm called Cry

  • Monero Ban List This is my personal, daily updating, mirror of the blocklists at gui.xmr.pm Upstream https://gui.xmr.pm/files/block.txt https://gui.xmr.pm/files/block_tor.txt To use, download the bloc

  • docker-monero Built from source monero Docker images based on Alpine Linux Pulling docker pull cornfeedhobo/monero Running the Daemon docker run -dit --name monero \ -v $HOME/.bitmonero:/root/.bitmon

  • Bitwyre's Monero Runs the Monero monerod full-node in a container. Copyright (C) 2020, Bitwyre Technologies LLC. Authors Yefta Sutanto