Goal: Filter by ticker length of ≤ 4 characters or if it contains ‘"." in the ticker. (Python solution)

A problem is the hash code after the ticker, for example, QRTEA WSRW88XX4PR9. I would want to filter this ticker out because it has more than 4 characters. An example of a ticker with a “,” is ACER.W

Why? I do this because tickers that have more than 4 characters sometimes denotes that they have bankruptcy proceedings or “.” means they have special voting rights, classes, or warrants attached to the shares. I don't want any of these in the algo. 

More about ticker lengths and letter meanings.