Quantcast
Channel: Latest Questions on Splunk Answers
Viewing all articles
Browse latest Browse all 13053

Regex expression (Field extraction)

$
0
0

I need to extract the date and time from this:

<d:message>(22/7)17:53 Accident on AYE (towards Tuas) after Jurong Port Rd Exit. Avoid lanes 2 and 3.</d:message>

Currently I am using this regex: (?im)^(?:[^)n]*)){2}s+w+s+(?P<twovalueroadonly>w+s+w+)

This extracts the word Jurong Port, how can I also extracts the (22/7)17.53 together with Jurong Port using my regex expression. Who can help my regex to read the time and date? I can't use IFX to generate the pattern.

Thanks a lot if you can help =)


Viewing all articles
Browse latest Browse all 13053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>