Service Virtualization

Expand all | Collapse all

DevTest Workstation: Regex not working as comparison operator in Request Data

  • 1.  DevTest Workstation: Regex not working as comparison operator in Request Data

    Posted Mar 03, 2016 07:27 AM

    So I needed this regex to filter any non-decimal entry in Query String parameter. I've created an expression like this: \D+|^$.

    Looks good in any online Regex tester and even via Javascript but I don't know why it doesn't work in Workstation. See attached files for a better understanding.

    I ran the following tests:

     

    1234567 (no matches, cool)

    d (1 match, cool)

    da (1 match, cool)

    123124d124124 (no matches, not cool)

     

    Am I missing something? My version is 8.2.0.

     

    Thanks in advance.



  • 2.  Re: DevTest Workstation: Regex not working as comparison operator in Request Data

    Posted Feb 18, 2019 09:50 PM

    Hi There,

     

    I am also facing the similar issue. Did you had any luck with fixing this issue?