BCH regex was recently updated (in the API) to: "address_regex": "^([13][a-km-zA-HJ-NP-Z1-9]{25,34})|^((bitcoincash:)?(q|p)[a-z0-9]{41})|^((BITCOINCASH:)?(Q|P)[A-Z0-9]{41})$"
Is this a Segwit thing?
I understand it's now saying addresses may start with "bitcoincash:" or "BITCOINCASH:", but that's a thing, or is it some internal Coinbase designation?
Breaking down this regex, there are three possible that constitute a valid BCH address:
1st Alternative
^([13][a-km-zA-HJ-NP-Z1-9]{25,34}):1or a3l,I,Oand02nd Alternative
^((bitcoincash:)?(q|p)[a-z0-9]{41}):bitcoincash:(strangely this can occur more than once)qor ap3rd Alternative
^((BITCOINCASH:)?(Q|P)[A-Z0-9]{41})$:BITCOINCASH:(strangely this can occur more than once)Qor aPEssentially, Coinbase is now simply accepting the three above regexes as valid BCH addresses, adding
bitcoincashas a recognised protocol used by BCH.