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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -