Using Regex in Katalon Studio


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/using-regex-in-katalon-studio.html

How can I get number after slash “12/35” that is 35 only

regex doesn’t seem to work with verifyTextPresent.

assertEquals(WebUI.verifyTextPresent(“This page contains \d error(s).”, true), true)

seems to break with this error:
Text ‘This page contains \d error(s).’ is not present on page using regular expression (Root cause: com.kms.katalon.core.exception.StepFailedException: Text ‘This page contains \d error(s).’ is not present on page using regular expression