<?php

$str = '/текст/текст текст/нетекст/текст';

list($a, $b) = preg_split('/(?=\/[^\/]+$)/', $str);

var_dump($a, $b);