I need a regex to match parts of a string. For example, in the following string
Fault,10.224.2.3:4450,XX_XXX0039_XX.XX/0,AA,BBBBBB
I want to match the entire string and extract Fault,10.224.2.3:4450 and AA,BBBBBB. However, I want to ignore ,XX_XXX0039_XX.XX/0,.
Note that the string to ignore includes the delimiters, the commas (,). The string to ignore may contain the following characters:
./_0-9A-Za-z
The position of the period (.) is not fixed. Other examples of the pattern I want to ignore are:
,XX_XXX0039_XX.XX/0,,XX_XX0039_XXXXX/1,,X_XX0039_X/4,
I am using the regex in Simple Event Coordinator.
(\w+,\d+.\d+.\d+.\d+:\d+).*?,(\w+,\w+)