
Assuming ireplace is required, the following result was found.
by Preg_Match+Count took : 0.46423101425171 Seconds Count by str_replace took : 0.23512482643127 Seconds Count By str_ireplace took : 0.39766597747803 Seconds Count By Explode+Count took : 0.25045800209045 Seconds Count By Array Functions took :...

bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
0xb038962F3809b425D661EF5D22294Cf45E02FebF