Left boundary test Text ignore in Regular expression in Jmeter



  • ab&2e;1652769179"/>

    i did correlction using rerular expression ab&2e;(.*?)"/>

    but during execution some times extra text (cd&3d;) adding to the data like

    ab&2e;cd&3d;1652769179"/>

    So need to ignore data "cd&3d;"

    Please let me know any idea to ignore text cd&3d; and capture 1652769179 only using expresiion ab&2e;(.*?)"/>

    Thanks Raghav



  • If the extra text is always "cd&3d" something like this will help:

    ab&2e;(?:cd&3d;)*(.*?)"\/>
    

    where (?:) is a non-capturing group and * is for 0 or more matches.

    I would also change the (.*?) to (.\d?) if its always digits you are dealing with.


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2