Retrieve a string from message

Post your questions and help other users.

Moderator: Martin

Post Reply
asutekku
Posts: 1
Joined: 10 Apr 2015 08:57

Retrieve a string from message

Post by asutekku » 10 Apr 2015 10:51

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Retrieve a string from message

Post by Martin » 10 Apr 2015 12:04

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

Post Reply