What\'s an efficient way in Python (plain or using numpy) to remove all lowercase substring from a string s?
s
s = \"FOObarFOOObBAR\" remove_lowe
import re remove_lower = lambda text: re.sub('[a-z]', '', text) s = "FOObarFOOObBAR" s = remove_lower(s) print(s)