Extract multiple strings using Regex jmeter -


i have following json response.

{ "customer1": { "details": { "acc": { "number": "91422915166" }, "phone": { "number": "98400915180" } }, "dateofbirth": "1979-04-03", "firstname": "harry", "lastname": "potter" } } 

jmeter script structure:

thread group (get customer details) +regular expression extractor .....name: customer .....expression:"number":(.+?)"dateofbirth":"(.+?)" .....matchno: -1 

i want use extractor expression extracts phone "number". present code extracting both acc "number" , phone "number". can please tell me expression need use in order working? thank you

if understand correctly, first number in response account number. don't want that. if so

expression : "phone": { "number": "(\d+)" } 

should help.

p.s. : in expression have dateofbirth in expression. needed number , not dateofbirth. if want extract 2 variables multiple occurrences, have tutorial here. http://goo.gl/w3u1r


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -