cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Cisco Secure Email Support Community

Product Support Talos Support Cisco Support Reference + Current Release
Gateway Reputation Lookup Open a support case Secure Email Guided Setup
Gateway: 14.0.1-033
Cloud Gateway Email Status Portal Support & Downloads docs.ces.cisco.com
Email and Web Manager: 14.0.0-418
Email and Web Manager Web & Email Reputation Worldwide Contacts Product Naming Quick Reference
Reporting Plug-in: 1.1.0.136
Encryption Bug Search
Encryption Plug-in: 1.2.1.167
Cloud Mailbox Notification Service
Outlook Add-in(s): More info

2069
Views
0
Helpful
2
Replies
joelbland
Beginner

Bitcoin RegEx

Hi all,

 

Our team has been working on a regular expression for detecting bitcoin addresses. I'd like to get your feedback on our RegEx and see what others are doing to detect crypto currency addresses in email. 

 

The RegEx we're using in our Dictionary is:

(\s|^|\:)[1|3][a-km-zA-HJ-NP-Z0-9]{26,34}(\s|$|\.)

Our regex includes some additions besides the standard bitcoin regex. The additions address some specific samples we saw in our environment, such as a colon before the address or a period following the address.

 

 

Please let me know if you have any improvements to the RegEx or other strategies for detecting bitcoin addresses.

 

Thanks!

 

P.S. - It would be ideal if the ESA could perform the address validation via a Smart Identifier.

 

"...in the spec itself they suggest to avoid using a RegEx or a length and content check to validate a Bitcoin address string, and points to this thread, where they show a validator that “does a “deep” validation, checking that the checksum built into every bitcoin address matches the address.”

http://mokagio.github.io/tech-journal/2014/11/21/regex-bitcoin.html

2 REPLIES 2
Ken Stieers
Advocate

I have asked for this as a smart identifier during the last beta I participated in...

Analyst42
Beginner

Hi,

 

do you have any updates please?