RegEx help: get jsessionid through regex -



RegEx help: get jsessionid through regex -

i need cutting out jsession id cookie values. want in text like:

foo bar jsessionid_th=abcdef; bar foo

i want abcdef through regex.

i checked match sequence using regex after specified character , using regex jsessionid , have regex:

(?<=jsessionid)[^;]+

i thought give me between jsession , next ";" start. however, regex not working. in add-on jsessionid_th can jsessionid_fc either or should give me value after equals sign. appreciate help , idea.

best regards,

dennis

use below regex(which uses capturing group) , value of jsessionid grouping index 1.

jsessionid[^;=]*=([^;]+)

regex

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -