New regex for Bitcoin wallet

Good evening, I'm a researcher and I'm building a regex to find bitcoin wallets inside some messages. Searching online I found many regex and finally I came up with the following: (?:bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39} However, looking at live transactions to test the matches, I noticed that many addresses are now much longer than the previous ones. It seems that the encoding is still Bech32 but now it no longer falls within the range {25,39} but longer, usually 59 and composed only by [a-z0-9], such as: bc1pg6sfeax2sjh8sdr2h3sgkg0lye4y5xpg8wzxhzzv7dgcl5fu3tcsr96uuc I haven't found anything online about this change... can you tell me something? submitted by /u/sondaosint2 [link] [comments]

Mar 22, 2025 - 20:02
 0

Good evening, I'm a researcher and I'm building a regex to find bitcoin wallets inside some messages. Searching online I found many regex and finally I came up with the following:

(?:bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39} 

However, looking at live transactions to test the matches, I noticed that many addresses are now much longer than the previous ones. It seems that the encoding is still Bech32 but now it no longer falls within the range {25,39} but longer, usually 59 and composed only by [a-z0-9], such as: bc1pg6sfeax2sjh8sdr2h3sgkg0lye4y5xpg8wzxhzzv7dgcl5fu3tcsr96uuc

I haven't found anything online about this change... can you tell me something?

submitted by /u/sondaosint2
[link] [comments]