Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} $re = array Panels/Font files/Quentincaps.ttf | Bin 0 -> 38764 bytes Panels/futura light bt.ttf Normal file Unescape DEF Kosmo_panel_Jack_Hole H 0 40 Y Y 1 F N DEF SW_SP3T SW 0 20 Y N 1 F N DEF SW_DIP_x05 SW 0 40 Y N 1 F N DEF SW_E3_SA3216 SW 0 0 0 Y N 1 F N DEF SW_Push_LED SW 0 0 N N 1 F N DEF power_GND #PWR 0 0 Y N 1 F N DEF SW_MEC_5G_2LED SW 0 0 Y N 2 F N DEF Kosmo_panel_Pot_Hole H 0 40 Y N 1 F N DEF SW_DPDT_x2 SW 0 0 Y N 1 F N DEF Synth_power_2x5_passive J 0 40 Y Y 1 F N DEF Kosmo_panel_Switch_Hole H 0 40 Y N 1 F N DEF SW_Rotary3x4 SW 0 0 Y N 2 F N DEF SW_SPST_Temperature SW 0 40 Y N 1 F N DEF ao_symbols_Graphic GRAF 0 40 N N 1 F.