Do you mean screen coordinates (x,y), or position (index) of a word in text?
Text is rendered differently, so it's a really difficult task to get correct screen coordinates with text object. You can do it with sprite font though.
If you just need to know the position of a sub-string, use find() expression. For example, find("ab cd ef", "cd") will return 3.