Im working now for a project called Cashless transaction using sms , wherein when someone paid there bill, mikrotik will automatically look for its account number and Reference number, the problem is I dont know how to code the specific string on the sms.
Ex. Text SMS
You have received PHP 1.00 of GCash from JO**E J* P. 09537424754 w/ MSG: 2021001. Your new balance is PHP 24.00. Ref. No. 6007722478141.
I do like to get the "MSG: 2021001" and also the "Ref No. XXXXXXXXXXX" which is randomly generated. by the user.
I did some research on PHP language, but i i could make it happen on ROS ,
Here's the sample PHP Code
<!DOCTYPE html>
<html>
<body>
<?php
$string="admin wrote a new post, FIRE 2 days, 2 hours ago";
$result=preg_split('/post,/',$string);
if(count($result)>1){
$result_split=explode(' ',$result[1]);
print_r($result_split[1]);
}
?>
</body>
</html>
Please do help, thankyou