This is really a spoon feeding request. I'm in the process of learning regex, which will take time to perfect, but as of now I'm in immediate need of help to work on regex expression.
Suppose I've a string like
$str = "asggasdg46%dgeoweg5.3%sdgeoge4%kge";
In the above string, I need to extract 46, 5.3, and 4 (i.e. all ints/floating numbers preceding the % symbol)