I have my xml data HERE, I need to extract using Splunk IFX, Generated pattern (regex).
Example Xml: <d:message>(22/7)17:53 Accident on AYE (towards Tuas) after Jurong Port Rd Exit. Avoid lane 3.</d:message>
I have this expression that extract from word after until Exit. (?i) after (?P<wordafter>.[^.]*?Exit)
As this look for word Exit only, how do I add other situation such as Rd|Entrance ? I tried (?i) after (?P<wordafter>.[^.]*?(Exit|Entrance|Rd)), it gives me Invalid regex: no named extraction at position 39 (i.e., "?(Exit|Ent..."). Expected "(?P<variable>pattern)"