Author Topic: Regular Expression cheat Sheet (English) translated from Indonesian OTomax  (Read 10328 times)

blackneck6666

  • Moderator
  • Jr. Member
  • **
  • Posts: 158
    • Optimugen
The use of regular expression in otomax is for caching response reply from provider. Some provider will reply different response that will make software confuse in traditional fixed answer. In otomax have the feature for  caching the dynamic reply from operator. That's will make your caching reply to more accurate.

But the problem that regular expression not a simple thing to understand for non programmer. Thanks to Indonesia otomax user share. and all credit this post goes to Indonesian otomax user especially zen --.. . -. he was the guys guide most otomax user for understanding the regular expression use in otomax.

Here i attach some picture and sample of regular expression used in otomax.
But all i post here is translated from indonesian Version into english. The credit not from me, but from Indonesian otomax user.
But i i'm not fully understand Regular expression too, i hope you in here also share some knowledge to grow this regular expression too for solving more complex problem you faced in otomax.


Translated Version

Contoh ekspresi reguler untuk menambahkan paramater [keterangan]
Example of regular expression is for adding parameter [keterangan/description]

Jawaban dari Flexi transfer salah tujuan=Nomor penerima transfer tidak valid: Nomor Tanpa Kode Area, Grace, Not Active atau bukan nomor Trendy (pra-bayar). Permintaan Anda tidak diproses.
Response from flexi transfer for a number = Recharge targed not valide : without Area Code, Grace, Not Active or not a valid number for Trendy Card (prepaid). Your request not proceed.

Utk menambahkan keterangan pada jawaban reply ke reseller bisa di tuliskan sintak ekspresi reguler=(?<keterangan>Grace, Not Active)
atau bisa jg=(?<keterangan>Nomor penerima transfer tidak valid)
For adding keterangan(description into reply to reseller can be written with following reqular expression sintax=(?<keterangan>Grace,Not Active)

Trus di Format Balasan Tujuan Salah ditambahkan paramater [keterangan].=
[kodeproduk].[tujuan] GAGAL. [keterangan]. Nomor Tujuan SALAH atau Kodeproduk tidak sesuai.
Then in format Reply to from provider added an parameter [keterangan/Description]
[kodeproduk.[tujuan] GAGAL(Failed). [keterangan/description]. Recharge target Number Wrong or Product Code not match

Dan jawaban ke reseller akan jd seperti ini=FT10.03337787521 GAGAL. Grace, Not Active. Nomor Tujuan SALAH atau Kodeproduk tidak sesuai.
And reply to reseller will be like this = FT10.033337787521 Failed, Grace, Not Active. Number wrong or Product code mismatch for the number

Utk contoh regex yg kedua jawaban ke reseller menjadi=FT10.03337787521 GAGAL. Nomor penerima transfer tidak valid. Nomor Tujuan SALAH atau Kodeproduk tidak sesuai.
For second regex the both reply to reseller will be = FT10.03337787521 Failed. Number to be transfered not valid. Number wrong or product code missmatch with the number


[attachment deleted by admin]
Hariyanto
+8618825217195
gtalk : blackneck6666
Shenzhen, Guangzhou, Hongkong.
http://www.aliexpress.com/store/feedback-score/215038.html

blackneck6666

  • Moderator
  • Jr. Member
  • **
  • Posts: 158
    • Optimugen
Some sample from mr yusuf for solving the reply from provider by adding qty parameter into the response provider for otomax

You need to catch the quantity (qty) variable.

Use this regular expression to catch the successful reply:

Code: [Select]
Rs (?<qty>\d+).{1,15} to (?<tujuan>\d+) is (?:successful|completed).+Trans ID:\s*(?<sn>\d+)


[attachment deleted by admin]
« Last Edit: September 30, 2013, 01:46:33 AM by blackneck6666 »
Hariyanto
+8618825217195
gtalk : blackneck6666
Shenzhen, Guangzhou, Hongkong.
http://www.aliexpress.com/store/feedback-score/215038.html

blackneck6666

  • Moderator
  • Jr. Member
  • **
  • Posts: 158
    • Optimugen
try post here you need to solve with regular expression, along with the sms from provider.  i try my best to do but i'm also learning. i hope also from you guys share here too
« Last Edit: September 30, 2013, 01:50:54 AM by blackneck6666 »
Hariyanto
+8618825217195
gtalk : blackneck6666
Shenzhen, Guangzhou, Hongkong.
http://www.aliexpress.com/store/feedback-score/215038.html

yogesh

  • International User
  • Newbie
  • *
  • Posts: 68
  • HAPPY-NEW-YEAR
sir plz give me success ful expension of this airtel dth
DTH Payment: Purchase of 150.00 of dth successful to 03007470150. Balance 16,700.00. 58932183, 3% extra margin on 12 month rental pack


i m having problem to get resopoce
WALKnTALK Telecom Services
DEALS IN RECHARGE MODEM.RECHARGE SOFTWARE,BULK SMS
whats app and mobile:+919988528007
walkntalkrecharges@gmail.com
knowaboutus=www.payindiarecharge.in

Yusuf

  • Administrator
  • Sr. Member
  • ****
  • Posts: 1,335
    • Orisinil.com
sir plz give me success ful expension of this airtel dth
DTH Payment: Purchase of 150.00 of dth successful to 03007470150. Balance 16,700.00. 58932183, 3% extra margin on 12 month rental pack

i m having problem to get resopoce

Text must be exist: successful
Text before number:  successful to
Text before SN: .00.
Text after SN: , 3%
Regular Expression:  of (?<qty>\d+)\.00

[attachment deleted by admin]

blackneck6666

  • Moderator
  • Jr. Member
  • **
  • Posts: 158
    • Optimugen
let's practise regular expression. this is some answer from operator. Let's do it together with regular express

DOCOMO
Dear Partner, Rs 10.0 Recharge to 9029389430 is completed. New GCMO Bal is Rs 7475.69.Trans ID: 100003097187655.Tata Docomo.
IDEA
RCH Successful on 8975718130 of Rs 50.Incentive Rs0.0.Current Bal Rs4437.24,Trans ID MH4093013410406 30/09/13/13/41.Dial*147*77# Cust Special Ofr.
VODA FONE
Refill request of INR 30.0 for mobile no. 8806104499, transaction ID MH13938097236 is successful. Your account balance is INR 599.0.VODA
BSNL
Topup for Rs. 200 to 9405956143 successful on 28/09/2013 at 01:51:47 PM.Current balance Rs. 2151.14. Ref 455160262.Beware of fraud calls and messages.BSNL
AIRTEL
RC SUCCESS.Cust:7387248504.Amt:32.00. on 9-09-2013 at 02:17PM.Comm:0.00.CurrBal:4,857.00 (Pre=4,857.00,Post=0.00).TxID 979695513.Dial*122*<mob>#AIR
UNINOR
Hi Partner,Recharge Success of Rs.10.00 to 7385990665.Bal Rs.60,722.00-Uninor ROCKET RECHARGE! Offer dekhen*234*Mobile# se aur payen extra bonus ID:1891100634UNINOR
Hariyanto
+8618825217195
gtalk : blackneck6666
Shenzhen, Guangzhou, Hongkong.
http://www.aliexpress.com/store/feedback-score/215038.html

blackneck6666

  • Moderator
  • Jr. Member
  • **
  • Posts: 158
    • Optimugen
my idea regex

[attachment deleted by admin]
Hariyanto
+8618825217195
gtalk : blackneck6666
Shenzhen, Guangzhou, Hongkong.
http://www.aliexpress.com/store/feedback-score/215038.html

MANO30

  • International User --
  • Newbie
  • *
  • Posts: 31
  • Real Service Provider of India
    • www.lapumagic.in
Regular Express Cheat Sheet For Airtel

Operator Response:-
RC SUCCESS.Cust:7894338785.Amt:20.00. on 8-01-2014 at 09:07PM.Comm:0.00.CurrBal:46,052.00 (Pre=46,052.00,Post=0.00).TxID 1356846789.Dial*122*<mob>#

Regular Express:-
RC SUCCESS.Cust:(?<tujuan>\d{10,}).Amt:(?<qty>\d+).+TxID\s*(?<sn>\d+)

[attachment deleted by admin]
Manoranjan Behera
Bhubaneswar,Odisha,India
Contact: +91-92385-95340,WAP-> +91-99379-75630
               Gtalk-> cs.lapumagic@gmail.com
               http://www.lapumagic.in

Thiagarajan

  • SUSPENDED
  • Newbie
  • *
  • Posts: 57
  • GALAXY
Dear All,

kindly post here about vodafone responce details becoz not catch properly

[attachment deleted by admin]
Thiagarajan Ramasamy - +91-9790188452
WhatsApp :: +91-9790188452
Gtalk : rdiahoo@gmail.com
Tamil Nadu, India.

blackneck6666

  • Moderator
  • Jr. Member
  • **
  • Posts: 158
    • Optimugen
post here few of vodafone reply in here
Hariyanto
+8618825217195
gtalk : blackneck6666
Shenzhen, Guangzhou, Hongkong.
http://www.aliexpress.com/store/feedback-score/215038.html

Thiagarajan

  • SUSPENDED
  • Newbie
  • *
  • Posts: 57
  • GALAXY

Refill request of INR 30.0 for mobile no. 9765870203, transaction ID RM13695166578 is successful. Your account balance is INR 36153.0.

Refill request of INR 17.0 for mobile no. 9158777136, transaction ID RM13695164679 is successful. Your account balance is INR 15553.0.

Refill request of Rs. 50.0 for mobile no. 917379729266, transaction ID RM13759606254 is successful. Your account balance is Rs. 6498.0


This is vodafone responce but not capture in properly most of time problem
Thiagarajan Ramasamy - +91-9790188452
WhatsApp :: +91-9790188452
Gtalk : rdiahoo@gmail.com
Tamil Nadu, India.

Yusuf

  • Administrator
  • Sr. Member
  • ****
  • Posts: 1,335
    • Orisinil.com
Refill request of INR 30.0 for mobile no. 9765870203, transaction ID RM13695166578 is successful. Your account balance is INR 36153.0.

Refill request of INR 17.0 for mobile no. 9158777136, transaction ID RM13695164679 is successful. Your account balance is INR 15553.0.

Refill request of Rs. 50.0 for mobile no. 917379729266, transaction ID RM13759606254 is successful. Your account balance is Rs. 6498.0

This is vodafone response but not capture in properly most of time problem

You don't have to use Regular Expression to catch these. The reply of mobile no. started with 91 uses "Rs" as its currency. The other one uses "INR". So you can create two rows to catch these.

Don't stick to one method only, then you will survive. Have a try :) (see attachment)

Note: Since version 3.3.6, 2 columns added to the Administration Response page, "Text before Qty" and "Text after Qty". With these columns, i hope you don't have to use regular expression and make all catching stuffs easier.

[attachment deleted by admin]
« Last Edit: January 16, 2014, 01:56:02 PM by Yusuf »

vickyx123

  • International User
  • Newbie
  • *
  • Posts: 49
    • MPA RECHARGE
New Expression Of Vodafone   
Plz Check This

 Regular Expression:-

of INR (?<qty>\d+).+mobile no. (?<tujuan>\d{10,}).+transaction ID ..\s*(?<sn>\d+)
« Last Edit: June 08, 2014, 02:08:47 PM by vickyx123 »
Regard
MPA Recharge
Gwalior (M.P.) India
9229941650
  *We Are Happy To Help You Always Try It*

vickyx123

  • International User
  • Newbie
  • *
  • Posts: 49
    • MPA RECHARGE
Expression Of BSNL

Regular Expression:-

 for Rs. (?<qty>\d+)+ to (?<tujuan>\d{10}).+Ref \s*(?<sn>\d+)
Regard
MPA Recharge
Gwalior (M.P.) India
9229941650
  *We Are Happy To Help You Always Try It*

vickyx123

  • International User
  • Newbie
  • *
  • Posts: 49
    • MPA RECHARGE
Expression Of Tata Docomo

Reguler Expression:-

Rs(?<qty>\d+).+ to (?<tujuan>\d+).+ Trans ID:(?<sn>\d*)
Regard
MPA Recharge
Gwalior (M.P.) India
9229941650
  *We Are Happy To Help You Always Try It*

kadosh

  • User OtomaX --
  • Jr. Member
  • **
  • Posts: 228
  • Make life better
    • http://cskadosh.wix.com/kadosh
Can anyone here help me to fix this?

538720000790/HARRIS/R1/1300VA/DES14/Rp726144/Adm2000

sooo... confused :(
https://www.facebook.com/agen.kadosh

Every successful person must have a failure. Do not be afraid to fail because failure is a part of success