Test, validate and match regular expressions
This regular expression uses two positive lookaheads to ensure a string contains both "displayname" and "templateid" anywhere within it, effectively performing a logical AND operation. If both substrings are present, the .* at the end matches the entire line or string up to a newline. It is commonly used in log filtering, configuration parsing, or data validation to find records that meet multiple text criteria.