Page 1 of 1

Retrieve a string from message

Posted: 10 Apr 2015 10:51
by asutekku
I'm getting job notifications via sms and to get them I need to answer them with a specific string of number of strings. What I'm trying to do, is get the string from the message and reply with it to the sender. Is this possible? Fortunately the string is the last thing in the message.

Here's an example:

"We have a job for you, please reply with this if you want it: 12345"

I would like to get the 12345 and then send it back to the sender.

Thanks in advance

Re: Retrieve a string from message

Posted: 10 Apr 2015 12:04
by Martin
Hi,

It should be possible to use script function matches to extract the text. This topic discusses something similar: Extract contact number from sms.

Regards,
Martin