Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

ginsuguy
Is there a baby monitor with two receivers where the parents can talk to each other?
I've seen "Talk to Baby" monitors and monitors with two receivers, but not one where the parent receivers can be used to talk to one another (i.e. "I got this")
3 AnswersNewborn & Baby9 years agoW/Javascript on each site, how can I retrieve "domain.co.uk" from a.b.domain.co.uk and "y.com" from www.y.com?
I know it's Reg ex related, but I know the wheel must be invented by now.
Restated, Given window.location.hostname (answers.yahoo.com/answers.yahoo.co.uk), how do I extract the root domain using Javascript? - (i.e. yahoo.com or yahoo.co.uk)
This is for a script that will be written once and reused.
The primary concern is the knowledge possibly having
sub2.sub1.domain.com vs. sub.domain.com.au
which is two four-element dot-delimited lists where the proper return value is two segments in the first example, and three segments in the second.
My initial thinking is about the CC being two characters long.
2 AnswersProgramming & Design1 decade ago