I'm attempting to match anything between different delimiters, using a Java based regex engine/interpreter. The text I'm after is the server.domain.com I do not believe I can use any Java either, only a regular expression. The log will only have one OR the other, never both. This must be accomplished with a single regex, or the application will have to be re-written.
Examples of the logs:
Host = server.domain.com|
OR
Host="server.domain.com"
Thus far I've tried the following, along with a number of other combinations...
Host="(.*?)"|Host\s=\s(.*?)\|
I must also use Host as part of the delimiter, as it is parsing out of a log with many other similar pieces.
Thanks for any help on this!