# 屏蔽加密货币地址

**URL:** <https://meta.discourse.org/t/censoring-crypto-address/391893>\
**Category:** Support\
**Created:** [2025年十二月22日 08:21 UTC](https://meta.discourse.org/t/censoring-crypto-address/391893 "2025-12-22T08:21:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2025年十二月22日 09:04 UTC](https://meta.discourse.org/t/censoring-crypto-address/391893/4 "2025-12-22T09:04:09Z")

</div>

> [@Salocin](#):
>
> 恕我直言，用正则表达式很难检测到

用正则表达式很容易检测到，因为它总是 `0x` 后面跟着 40 个 a-f 和数字字符。

`/^0x[a-fA-F0-9]{40}$/g`

BTC 地址将是 `^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$`（`13` 后面跟着 25 到 34 个字符，不包括 `l`、`I`、`O` 和 `0`）

将此添加到“监视的词语”中，别忘了启用设置 - 发帖 - “监视的词语正则表达式”。

---

_[View the full topic](https://meta.discourse.org/t/censoring-crypto-address/391893)._
