convert numbers in alphabet form to integer

Certified Senior Developer

HI All,

Example -- I am forty-five years old.

from above text i need to get 45 in integer form. How to achieve this?

Thanks,

Ganesh. 

  Discussion posts and replies are publicly visible