DEV Community

drake
drake

Posted on

匹配不同公链地址的正则

address_re_patterns = ['(^[13][a-km-zA-HJ-NP-Z0-9]{25,34}$)|(^bc1[a-zA-Z0-9]{38,59}$)', '^0x[A-Fa-f0-9]{64}$', '^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{44}$', '^UQ[0-9a-zA-Z_]{46}$', '^0x[A-Fa-f0-9]{40}$', '^T[A-Za-z1-9]{33}$', '^addr[0-9a-zA-Z]{54}$', '^1[1-9A-HJ-NP-Za-km-z]{47}$']

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay