Gatling Regex Issue

24 views
Skip to first unread message

Kapil

unread,
Feb 19, 2018, 12:16:01 PM2/19/18
to Gatling User Group
Hi,

I have following in my html page source

<a href="/computers/2376">TEST800083</a></td>

First I am trying to capture TEST800083 and defined following check .check(regex(""">(.*?)<\/a><\/td>""").saveAs("DeleteComputerURL"))) 

gatling log file is showing following value extracted for this 

DeleteComputerURL -> <a href="/computers/2376">TEST800083),1519059947642,23,KO

Please can you advice what's wrong in my regex and why it's not capturing value TEST800083 only as per my regex definition ?


Regards

khaled.a...@gmail.com

unread,
Feb 21, 2018, 10:51:12 AM2/21/18
to Gatling User Group
Hi

Try to use this one in regex :

.check(regex("\">(.+?)<\\/a><\\/td>").saveAs("DeleteComputerURL")))
 
Reply all
Reply to author
Forward
0 new messages