Count same pattern row in HTTP::payload

Hi all, i’m going crazy to find a way to count some field on HTTP::payload.

See the attached files. It’s an HTTP post, as you can see there are multiple “loc:addesses” rows, 29 in this case.

I need a way to count these rows and put in a variable .

Please help me!

Regards

Antonio

Hi Antonio,

The only option I can think of to count the number of instances of a pattern in a string is regexp:

regexp -indices -all {123} abc123123abc

2

http://www.tcl.tk/man/tcl8.4/TclCmd/regexp.htmM7

Aaron