cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How to capture specific numeric value in argument value of method using regex?

ruchitat
Inactive

Hi,

Kindly help us to resolve below mentioned issue.

We need to capture particular value (only numeric value) from method's argument value as mentioned into attachment by using regular expression.

/TEBT_ApplicationModuleWeb/ApplicationSubmissionHTTPExport/submitApplication;{"head":{"txnid":"POS-xxxxxxxxxx-xxxxx","userid":"xxxxxx","source":"POS"},"body":{"applctndetails":{"basicappinfo":{"chnlnm":"Agency","appno":"11000xxxxxxxx","appmode":"xxxxxxx","chnlpartner":"xxxxxx","instype":"xxxxxx",

appno.png

Thanks & Regards,

Ruchita Terse.

2 REPLIES 2

rajanikanthanka
Inactive

Hi Ruchita,

Can you try this and see if it works

\d+((.|,)\d+)?

https://regex101.com/r/nkWfMG/1

Thanks,
Rajani

Hi Ruchi,

Below Expression should work for your case:

"appno":"(\d*)",

Assuming appno is only numeric chars and integer kind of numbers.

Regards, Rajesh.