How can i give link in block for only listed paths based on user id? I have created block and i want to give the only listed paths

i.e user/user_id   ex: user/123

i have given user/*  but it displays all pages where users pages are there.

i tried below ways

and enabled PHPFILTER and tried this
Try "extended_block_visibility" module, install it and then on block setting page select last option "pages on which this php code will return true" and then you can write php code inside php tag like :

&lt;?php
if(arg(0) == 'user' &amp;&amp; is_numeric(arg(1))){
return TRUE;
}
return FALSE;
?&gt;


But remember this code will save inside the DB and will break site if write wrong code. Alternatively you can define theme specific visibility using this module.