Post
Topic
Board Beginners & Help
Regular Expression for validating ERC-20 address
by
PowerLaunch
on 22/09/2018, 01:57:01 UTC
I did a search on google and couldn't find this posted anywhere, but here is the regular expression (regex) that I use to validate ERC-20 wallets for proper structure:
Code:
0x+[A-F,a-f,0-9]{40}

I'm just hoping this will help someone - it's very useful if you have a form that requires users to submit a wallet address (especially bounties and things of that nature).