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”))
Thanks!
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”))
Thanks!
I am doing something like the following…
.check(regex("""""").saveAs(“ViewState”))
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:
.check(regex(""“name=“javax.faces.ViewState”(.+)value=”([^"]*)"""").find(1).saveAs(“ViewState”))