Forum Discussion

vherault's avatar
vherault
New Contributor
14 years ago

(?x) enables "free-spacing mode".

Hello,

In soapui when I use a contain assertion, I successfully use the modifier (?s), (?i)
to pass through newline (\r\n) and to ignore case.

But when I want to have the assertion expanded on several lines to be more readable (using (?x)
it doesn't work.

It's OK when using in an assertion for JDBC Request, but it's doesn't work
when using in assertion for normal test resquest (<soapenv:Envolope xmlns: ...)

Is any one have an idea ?

Thanks

1 Reply

  • vherault's avatar
    vherault
    New Contributor
    It's OK, the error come from me :-)

    it's was OK when there no space in the assertion itself (it was the case in my assertion for jdbc request)
    when there are spaces, it's important to replace it by \s

    Do not work
    (?sx).*
    <code xmlns="">0</code>\s*
    <message xmlns=''>success</message>.*

    (?sx).*
    <code\sxmlns="">0</code>\s*
    <message\sxmlns=''>success</message>.*