Regex for addresses and private keys?

Would like to search an offline computer for some ppc that was stored in plaintext. Is there a standard format for addresses and private keys?

public key:

^[P][a-km-zA-HJ-NP-Z1-9]{25,34}$

coin address is

an identifier of 26-35 alphanumeric characters
beginning with the number P
random digits
uppercase
lowercase letters
with the exception that the uppercase letter O, uppercase letter I, lowercase letter l, and the number 0 are never used to prevent visual ambiguity.

Private Key WIF (compressed, 52 characters base58, starts with a ‘U’):
^[U][a-km-zA-HJ-NP-Z1-9]{51}$

and so on…
You get the idea

1 Like

For search purposes, I don’t know how one would freetext search a PPC key, since the letters and numbers are randomly set. The only constant charater is the capital P at the beginning

Maybe there is a search program that will search P*, where ‘p’ is upper case, and * represents anything that follows it. And if the search is confined to .txt files (plain text), that might narrow it down?