title: Validation of dynamic text in testing
body: <p>I am trying to validate a pin code in my application. I am using Katalon and I have not been able to find an answer.</p>
  
  <p>The pin code that I need to validate is the same length but different each time I run the test and looks like this on my page: PIN Code: 4938475948.</p>
  
  <p>How can I account for the number changing each time I run the test?</p>
  
  <p>I have tried the following regular expressions:</p>
  
  <pre><code>assertEquals(
      "PIN Code: [^a-z ]*([.0-9])*\\d", 
      selenium.getText("//*[@id='RegItemContent0']/div/table/tbody/tr/td[2]/table/tbody/tr[2]/td/div[1]/div[3]/ul/li[2]/span")
  );
  </code></pre>
  
  <p>Note: This was coded in Selenium and converted to Katalon.</p>