String checks
Testomato allows you to create string checks for two types of page content. Those simple checks can be created for:
HTML on page- represents raw source code that we downloaded from given URLText on page- represents just readable text from given URL

Then you can use following operators:
contains- check that downloaded content contains given string with substr() PHP functiondoes not contain- check that content does not contain given stringequals- content is exactly samematches- check that content match regular expression with preg_match() PHP functiondoes not match- check that content does not match
String checks are case sensitive, so make sure you PaY ClosE AtTentioN to the text you enter.
How regular expressions are processed
Testomato processes and escapes all users inputs including regular expressions. We are using { and } for wrapping your
regex and also adding the following Pattern Modifiers:
upattern and subject strings are treated as UTF-8. An invalid subject will cause the preg_* function to match nothingmsubject strings are treated as multi-line string
You can debug your regex with https://www.phpliveregex.com/ or https://phphub.net/regex/
When to use HTML on page vs Text on page?
HTML on page is content as downloaded from a given url, only encoded to utf8 - it's useful for checking all content including
HTML tags or meta information in <head></head>.
Text on page is a subset of HTML on page - we just remove all markup (HTML tags,
head, scripts etc.) and then apply all your checks.