Elsevier_-_OH_S
12 years agoContributor
[Resolved] Regular expression
Hi Below is my response
SA</ns2:A>
<ns2:B>S</ns2:B>
</ns2:A>
<ns2:C>123</ns2:C>
<ns2:D>N</ns2:D>
<ns2:E>B</ns2:E>
<ns2:F>None</ns2:F>
<ns2:G>ONLINE_REGISTERED</G>
<ns2:H>s</ns2:H>
<ns2:I>(12649064,U|289843,D|274039,A|73611,S|34,P|2,PL)(S,C|db214a9f7a45341da252f64-602a0d8f43650d4d,SSO|R_P,AC_TE)</ns2:I>
i want to use regular expression for <ns2:I>(12649064,U|289843,D|274039,A|73611,S|34,P|2,PL)(S,C|db214a9f7a45341da252f64-602a0d8f43650d4d,SSO|R_P,AC_TE)</ns2:I>
in this node text db214a9f7a45341da252f64-602a0d8f43650d4d is changing on every run so wants to use some regular expression inplace of this in this response can you please let me know how i can i implement this.
second question is i have content assertion on my whole response on the body node of response, sometimes this assertion fails because no of nodes increases or decrease on some runs...can i use regular expresion instead or is there any other method.
SA</ns2:A>
<ns2:B>S</ns2:B>
</ns2:A>
<ns2:C>123</ns2:C>
<ns2:D>N</ns2:D>
<ns2:E>B</ns2:E>
<ns2:F>None</ns2:F>
<ns2:G>ONLINE_REGISTERED</G>
<ns2:H>s</ns2:H>
<ns2:I>(12649064,U|289843,D|274039,A|73611,S|34,P|2,PL)(S,C|db214a9f7a45341da252f64-602a0d8f43650d4d,SSO|R_P,AC_TE)</ns2:I>
i want to use regular expression for <ns2:I>(12649064,U|289843,D|274039,A|73611,S|34,P|2,PL)(S,C|db214a9f7a45341da252f64-602a0d8f43650d4d,SSO|R_P,AC_TE)</ns2:I>
in this node text db214a9f7a45341da252f64-602a0d8f43650d4d is changing on every run so wants to use some regular expression inplace of this in this response can you please let me know how i can i implement this.
second question is i have content assertion on my whole response on the body node of response, sometimes this assertion fails because no of nodes increases or decrease on some runs...can i use regular expresion instead or is there any other method.