regex to replace string with params
<p><br>
Please help me to create regex for replace a string like: <br> 
<strong>/technic/k-700/?type=repair</strong> <br>
to a string like <br>
<strong>/repair/k-700/</strong>
<br>
Instead of <strong>k-700</strong> can be any another combination (between <strong>/</strong> ) and instead of <strong>repair</strong> can be only <strong>kit</strong>.<br>
I need pattern and replacement, please. It's so hard for me.<br>
My result not working for <em>Wordpress</em>:</p>

<pre><code>$pattern = '/technic/([0-9a-zA-Z-]+)/?type=$matches[1]';
$replacement = '/?/([0-9a-z-]+)/';
</code></pre>