Regular Expressions 101

Community Patterns

Regex to extract SEED and first 10 ETH addresses.

0

Regular Expression
PCRE2 (PHP >=7.3)

/
Mnemonic Code Converter(\n.*){14}\nBIP39 Mnemonic\n(.*)(\n.*){52}\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*\n.{17}(0x.{40}).*(\n.*){90}
/
gm

Description

Using iancoleman's Mnemonic Code Generator located at https://iancoleman.io/bip39/, set the COIN type to ETH. Then Ctrl+A (Windows), select all of the text on the page, copy, and paste into the "TEST STRING" located at "Regex101.com". This will leave only the SEED and first 10 ETH addresses as the result.

Submitted by anonymous - a year ago