How do i remove non vowels from a given string

I am not getting how to remove non vowels from a string

I know only how to remove vowels from string using regex

import re
st='adfgaweio'
re.sub('[aeiou]','',st)

if I give it as not -> re.sub(!'[aeiou]','',st) it throws error


Use [^aeiou] where ^ is the not operator

import re

st = 'adfgaweio'
re.sub('[^aeiou]','',st)