Tip
See the XmrAddr libraries.
This is a collection of best-you-can-do regular expressions matching Monero addresses of each kind and network type. Keep in mind to actually verify an address you should validate the checksum, so use these only for preliminary filtering of data, UI validation, etc. where false positives won't hurt. Also, I semi-purposefully didn't include regex for integrated addresses, which are nowadays considered deprecated by many, including myself.