Hi.
I'm having the following problem. Some hosts in my logs come in format DOMAIN\SERVER and some server.domain_1part.domain_2part (delimeted once by \ or server times by . (dot)).
I need to extract:
1) domain name: so it would be DOMAIN from the first example or .domain_1part.domain_2part from the second one
2) server name: SERVER from both examples
I've been trying to do this with just 1 regex but been failing continuosly;/
Any ideas or it's just simply impossible.