There are many approaches.
The simplest (which will explode if the words you look for aren't there):
Given a string:
s="@From ProhtienArc: Hi, I'd like to buy your 69.5 chaos for my 1 exalted in Incursion."
Split it (on spaces):
L=s.split()
You can then search the list
['@From', 'ProhtienArc:', 'Hi,', "I'd", 'like', 'to', 'buy', 'your', '69.5', 'chaos', 'for', 'my', '1', 'exalted', 'in', 'Incursion.']
like this
>>> L.index("chaos")
9
and use that index to find the token before:
>>> L[L.index("chaos")-1]
'69.5'
This is a string so you then need to convert it to a number.
Do likewise with the other word.
Watch out for not finding the words or them being at the initial index.
And more generally, you could use any word in place if the "chaos".
def number_before(word, split_words):
return L[L.index(word)-1]
Split you string and call it:
as_string = number_before("chaos", s.split())
number = float(as_string)
You need to decide what to do if the word isn't there.