Hi all
How can I match with regular expression hosts like 123-45-67-89.dummy37.ipx.northtelecom.net.uk or q6415-ipbffx02alas.tokyo.ocx.wa.jp?
Additional info, some samples (I modified some hosts for privacy reasons):
- abc953.internetdsl.uwnet.pl
- ip-200-200-200-200.static.puxdsl.pt.lu
- 123-123-45-45.cost.xligtik.se
- saul-wilhem-c-118-37.sewl-net.com
- static-80-80-250-230.sdsl91.rokh.ny.premiernet.net
- static-ip-cr73415187.kable.net.ca
etc.
Host that must NOT match: e.g., hosts like foo---bar.example.com
or foo...bar.example.com
Solved: I should have solved with the following pattern:
/((?:[a-z0-9\-]*\.){1,}[a-z0-9\-]*)/