(?!u)
is a zero-width assertion which means that it matches a position between characters, just like \b
matches the position between a word character and a non-word character, or ^
matches the position at the beginning of the string.
In this case, however, it matches any position that isn't before a u
, so when it is applied to a string like uuuuxx
it will match after the last u
and before the first x
. It doesn't seem to be a very useful thing to do, but there it is.