I have tried the following settings without success:
LINE_BREAKER = ~\\
LINE_BREAKER = ~\\^
LINE_BREAKER = ([~\\]+)
LINE_BREAKER = (.*)[~\\](.*)
LINE_BREAKER = .*~\\.*
An example string would be:
SMSEUCP_7110:STATUS:1049110|7116|7110|192.168.0.5
1180178|7112|7110|192.168.0.5
14156304|7111|7110|192.168.0.5
1180174|7117|7110|192.168.0.5
1180170|7119|7110|192.168.0.5
5767676|7113|7110|192.168.0.5
5308816|7114|7110|192.168.0.5
1573452|7115|7110|192.168.0.5
2426006|7118|7110|192.168.0.5
11141326|7110|7110|192.168.0.5~\SMSEMO_0000:S:(0000) Incoming : 3161234567 oh really? let do that then, ok?~\SMSEMO_0000:P:Posting : http://someurlwithparameters~\
The end result should be multiline events split by ~\ like so:
Event 1:
SMSEUCP_7110:STATUS:1049110|7116|7110|192.168.0.5
1180178|7112|7110|192.168.0.5
14156304|7111|7110|192.168.0.5
1180174|7117|7110|192.168.0.5
1180170|7119|7110|192.168.0.5
5767676|7113|7110|192.168.0.5
5308816|7114|7110|192.168.0.5
1573452|7115|7110|192.168.0.5
2426006|7118|7110|192.168.0.5
11141326|7110|7110|192.168.0.5
Event 2:
SMSEMO_0000:S:(0000) Incoming : 3161234567 oh really? let do that then, ok?
Event 3:
SMSEMO_0000:P:Posting : http://someurlwithparameters
I'm no regexp guru, but I thought this would be easier 😉
... View more