Hi,
I am formulating a DPL command to return true if a pattern such as a credit card format/number exists anywhere within a piece of text.
For example…
data record(a = "378282246310005")
| parse a, """CREDITCARD:cc"""
| fieldsAdd hasCreditCard = isNotNull(cc)
… this would return true, but the minute I add anything before or after it will return false. Any ideas on how to detect that pattern anywhere within a piece of text, or a log? Which is where this code/function is going to be used.