<?php $path = '/a/b/c/d/e.f'; $matches = []; preg_match("/\/|\\/", $path, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.