capturing a viewstate

My response contains the following:



How do I capture just the “value” using i.e. regex?
This does not work:

.check(regex("""=“javax.faces.ViewState” value="([^"]*)"""").saveAs(“ViewState”))


I am doing something like the following…


Your original regex is missing "id=“j_id1:javax.faces.ViewState:0” "

If your response always contains this id, Joe Strains suggestion is the way to go.

Otherwise you could try this one: