정규식 함수
PantherFlow 정규식 함수
re.count()
re.count()re.count(stringable: any, regex: string) -> int
다음이 발생한 횟수를 반환합니다 정규식 에 stringable또는 null 값이 있는 경우 null.
예:
panther_logs.public.aws_alb
| project tripleDigitBlocks=re.count(clientIp, "[0-9][0-9][0-9]")re.matches()
re.matches()re.matches(stringable: any, regex: string) -> bool
다음이 정규식과 일치하면 true를 반환합니다 stringable 다음이 정규식과 일치합니다 정규식.
예:
panther_logs.public.aws_alb
| project inCidr=re.matches(clientIp, '^192\\.168\\.1\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})$'), clientIpre.replace()
re.replace()re.replace(stringable: any, regex: string, replacement: string) -> string
다음을 반환합니다 stringable 지정된 패턴으로 정규식 (또는 패턴의 모든 발생)을 제거하거나 다음으로 교체합니다 대체 문자열또는 null 값이 있는 경우 null.
예:
re.substr()
re.substr()re.substr(stringable: any, regex: string) -> string
다음과 일치하는 첫 번째 부분 문자열을 반환합니다 정규식 - ID: Missing Crowdstrike stringable또는 null 값이 있는 경우 null.
예:
Last updated
Was this helpful?

