for the first you can simply use:
you could add a + next to the ., (.+), if you want it to match a repeated string of any length. such as "lalalalalalalalalalala"
the second regex is a bit longer:
/(?:^| )([^ ]++)(?:.* \1(?= |$)){9}/i
a variation of this would be to match not necessarily space delimited words, just any series of word characters (\w), as in "bla.hi.bla.bla.bla.loool.bla.bla.bla.bla.ipswitch.bla.bla"
/\b(\w++)(?:.+\b\1\b){9}/i
if you need an explanation of how these work, just ask!