Send payments here 1MAFzYQhm6msF2Dxo3Nbox7i61XvgQ7og5 to keep your secrets safe. Send BitCoin payments here 1MAFzYQhm6msF2Dxo3Nbox7i61XvgQ7og5ġMAFzYQhm6msF2Dxo3Nbox7i61XvgQ7og5 to keep your secrets safe. anywhere (or anywhere close to the address)? What if text comes before and/or after on same line? Or doesn't contain BitCoin/BTC/etc.
Other possible BitCoin test cases I added: Receiving Bitcoin Address: 1MAFzYQhm6msF2Dxo3Nbox7i61XvgQ7og5 Receiving Bitcoin Address: 15LZALXitpbkK6m2QcbeQp6McqMvgeTnY8 Here are my test cases: -īitCoin blackmail formats observed (my org and online):īTC Address: 1JHwenDp9A98XdjfYkHKyiE3R99Q72K9X4īTC Address: 1Unoc4af6gCq3xzdDFmGLpq18jbTW1nZDīTC Address: 1A8Ad7VbWDqwmRY6nSHtFcTqfW2XioXNmjīTC Address: 12CZYvgNZ2ze3fGPFzgbSCELBJ6zzp2cWcīTC Address: 17drmHLZMsCRWz48RchWfrz9Chx1osLe67 One variation caught many spam emails within a short timeframe of passive alerting (examples follow).
I am not knocking the solutions, as they work for certain use cases, but they simply don't work for mine.
The proposed RegEx will catch many FPs in email, due to filenames and other identifiers within URLs. My use case was to find BitCoin addresses in the body of an email given the rise of blackmail/sextortion (Reference: ) - so these weren't effective solutions (as outlined later). These RegEx provided will find BitCoin addresses either at the start of a line and/or end of the line. As the OP didn't provide a specific use case (only matching criteria) and I came across this in researching methods to detect BitCoin addresses, wanted to post back and share with the community.