E
Epetruk
Hello,
I'm trying to write a regular expression that extracts the host name from a
string.
In other words, the string I extract must have:
- only letters, numbers and fullstops in it;
- the fullstops most be in the middle of it.
So if I have a string like this:
"this is a host.domain.com name that I want"
what kind of regular expression would I write to extract 'host.domain.name'?
I'm trying to write a regular expression that extracts the host name from a
string.
In other words, the string I extract must have:
- only letters, numbers and fullstops in it;
- the fullstops most be in the middle of it.
So if I have a string like this:
"this is a host.domain.com name that I want"
what kind of regular expression would I write to extract 'host.domain.name'?