I have an function t^n*f(t). Lets say that n is a number:
t^234.57*f(t)
This function t^n*f(t) can be a part of a larger function. Example:
b+c(t)+t^234.57*f(t)+Z.
"n" can be any number, and does not necessarily have a decimal point every time.
How do I parse out n to a var named $nvar? Basically I want to recognize the t^n*f(t) function first, and then get n. I made an attempt at the regex, and gave up.