<table border="1">
<tr>
<th>id</th>
<th>filepath</th>
</tr>
<tr>
<th>1</th>
<th>uploads/1233/a.jpg</th>
</tr>
<tr>
<th>2</th>
<th>uploads/1213/b.jpg</th>
</tr>
<tr>
<th>3</th>
<th>uploads/1243/c.jpg</th>
</tr>
<tr>
<th>4</th>
<th>uploads/1234/d.jpg</th>
</tr>
<tr>
<th>5</th>
<th>uploads/1273/e.jpg</th>
</tr>
</table>
id
和filepath
來自mysql表。 我想要替換uploads文件夾和圖像名稱之間的數字值。從字符串中間替換文本
如何在mysql或php中執行此操作?
請說明您的要求是否正確。 _我想在上傳文件夾之後和圖像文件_之前?有感覺嗎? –
[這可能會幫助你](http://stackoverflow.com/questions/9261713/regex-strip-out-text-between-first-and-second-forward-slashes) –
這是完整路徑上傳/ 1273/e .JPG ???你想刪除數值?糾正我...... – devpro