Service Virtualization

 View Only
  • 1.  Regex

    Posted May 24, 2020 03:46 AM
    Hi,

    I wanted to generate some random characters in the response. However i caught hold of a sample regex

    For Example : {{=[StringProperty:A*(5-15)]}} = ezJg5nbm7xZ

    Similarly, can someone tell me what is the regex i have to use to generate random characters that has letters only between A-F.


    ------------------------------
    Thanks,
    Varun Chand
    ------------------------------


  • 2.  RE: Regex
    Best Answer

    Posted May 24, 2020 02:29 PM
    Hi,

    I did find the answer for this.



  • 3.  RE: Regex

    Posted May 25, 2020 03:05 AM
    Edited by Vaibhav Jain May 25, 2020 03:33 AM
    Hi Varun,

    Could you please share your findings here as well. Like if you have used :X or :H to generate the random code or any other regex.

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 4.  RE: Regex

    Posted May 30, 2020 04:14 PM

    I used {{=[StringProperty:X*(8)]}} and it worked.



    ------------------------------
    Thanks,
    Varun Chand
    ------------------------------