$string() = "This is with admin charges";
What I intend to do is to write down an X-Path with RegEx to return the statement above true in the sense that when $string contains "admin charge", then the statement returns true.
See, the statement above can have the following keywords,
- admin && charge || charges
- administrative && charge || charges
- administration && charge || charges
See, all and all, the root keyword here is "admin" and "charge".
Therefore, I would like to write a script that incorporates X-Path and RegEx in it.
The following is my approach so far,
contains(upper-case(normalize-space($string)), "ADMIN CHARGES")
This is still only matches exactly.
I researched, but mostly is to check for single keyword, like
contains(upper-case($string), "^[m/ADMIN CHARGE/]"
Thanks in advance