這裏切的基本路徑是我想抓住這是繼基本路徑的例子如何使用正則表達式
SF_Library/example/Platform/Analyses-PLATFORM.part0.xml
SF_Library/example/Platform/Models-PLATFORM.part0.xml
SF_Library/example/Platform/Models-PLATFORM.car
SF_Library/example/Platform/DS-PLATFORM.car
。
SF_Library/example/Platform/
有人知道我應該使用哪種正則表達式嗎?
從內存:分配i = /你的/路徑/到/文件然後做'echo $ {i ## * /}'。 –
爲什麼在問題上反對投票?它有什麼問題? – Satish
缺乏研究和缺乏顯示你的嘗試,我猜。 –