Grab last part of the url inside rule

doesn’t it work get_query_var('u') to grab the variable ?

Also you need to use – "index.php?pagename=search-result&u=". '$matches[1]' , single quote surrounding $matches[1].