I am trying to write a regular expression that match any of the following lines
localhost.localdomain (127.0.0.1) 0.025 ms 0.007 ms 0.006 ms
127.0.0.1 (127.0.0.1) 0.025 ms 0.007 ms 0.006 ms
I tried the follwing regexp
[127.0.0.1|localhost.localdomain] (127.0.0.1) [\d.]+ ms [\d.]+ ms [\d.]+ ms
But this doesn't work. It matches only
n (127.0.0.1) 0.025 ms 0.007 ms 0.006 ms
Can I get some help on this.
Thanks ~S