Strip text form user input after certain character

Hi all!

I’m working a project in Axure and therefore use variables. In my project there is a text box, where users have search for a domain. But the problem is, people search for google.com. The part I want is only Google, I don’t need the part with .com

Is there a way to strip the part after the dot ‘.’ in Axure.

Thanks!

[[TEXT.substring(0, TEXT.indexOf(’.’))]]

Where TEXT is your original text.