DEV Community

pavan mishra
pavan mishra

Posted on

seeking help in regex

Regex to be modified to match full string
Image description:
c[n|s]\dlabel=(\w+).*?c[n|s]\d=([.a-zA-Z0-9_-]+)

Sample log:
CEF:0|vendor|product|1.1|1234|PolicyAssetUpdated|1|cn1label=EventUserId cn1=-3 cs1label=EventUserDisplayName cs1=Automated System cs2label=EventUserDomainName cs2= cn2label=AssetId cn2=20888 cs3label=AssetName cs3=ABCDPQRS.domain.com cn3label=DirectoryId cn3=856 cs4label=DirectoryName cs4=Active Directory cs5label=DomainName cs5=domain.com

Discussion (0)