18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Using Regular expression
Hi,
I am trying to use a text , "Sample study11-05-2011Not Yet Started"
where the date part changes so i m using regex
boolean flag = (browser.row(12).getText().equalsIgnoreCase("/Sample study.*Not Yet Started/"));
System.out.println(flag);
It returns false even if the value matches regex!!
What should i use?? Where am i going wrong?
Regards
Akshada
I am trying to use a text , "Sample study11-05-2011Not Yet Started"
where the date part changes so i m using regex
boolean flag = (browser.row(12).getText().equalsIgnoreCase("/Sample study.*Not Yet Started/"));
System.out.println(flag);
It returns false even if the value matches regex!!
What should i use?? Where am i going wrong?
Regards
Akshada