i have data looks like
ex:992215:show:cms016:000335:esp:15:eur:euro:4:14:01/05/2009:30/04/2017:52:26: i wanted read last value i.e 26 using jmeter regular expression extractor. tried following regex,
.+:992215:.+:.+:\d+:.+:.+:.+:.+:\d+:\d+:\d+/\d+/\d+:\d+/\d+/\d+:\d:(.+?): the regex not working \d+/\d+/\d+:\d+/\d+/\d+:\d:(.+?): date part. can please me out this.
if not care between :992215: , number after last : on line, use
:992215:.*:(\d+) see this regex demo
details:
:992215:- literal string.*:- 0+ characters other newline last:on line(\d+)- group$1$capturing 1+ digits.
if want use own regex, might try replace .+ (that is, greedy dot pattern matching 1+ characters other newline many possible) [^:]+ (a negated character class matching 1+ chars other : many possible).
Comments
Post a Comment