Layer7 API Management

  • 1.  regx api g

    Posted Jul 05, 2018 08:27 PM

    Hi There,

    Could you pls advice what could be the reg Expression to extract the following  "Gender":"Male"  I've tried with something like the following ("Gender":)(.*) but it extracts mobile no too.

     

    {
    "username": "test@gmail.com",
    "email": "test@gmail.com",
    "Gender":"Male",
    "mobile": "3233223222"
    }



  • 2.  Re: regx api g
    Best Answer

    Broadcom Employee
    Posted Jul 05, 2018 08:41 PM

    if you want to mask the gender, try this,



  • 3.  Re: regx api g

    Broadcom Employee
    Posted Sep 27, 2018 10:28 PM

    The regular expression provided will get what you want. Also you can look to use the JSON Path assertion as well.

     

    Sincerely,

     

    Stephen Hughes