How to trim or only get these word

So i have this api set up it’s an email verifier, now the response give me an mx_record

some of them has this value “gmail-smtp-in.l.google.com

Now, i want it so i can trim the last word and only getting the google.com

But idk how to do it, any solution

(It’s for checking what mail platform does the email use)

Hey Anthony

You could try to use the REGEX feature on the response from API:

(\w+\.\w+)$

Here’s an example of a button click where I am using this expression to make a change to a value from input.

Regex Patter Demo

Hope this helps

Thank you it works!!

This topic was automatically closed after 70 days. New replies are no longer allowed.