D
Deepan - M.Sc(SE) - 03MW06
Sorry i didnt explain the previous posy correctly.
I am having a string which can have either one of the below as its
input:
$str="/a/b/c/"; (or) $str = "/a/b/c/d/";
What i need is that regardless of the input it should always be able
to extract "c" from the
above strings. I should not use split. Only by using regular
expressions i should be able to achieve this. Please help me to solve
this.
Thanks,
Deepan
I am having a string which can have either one of the below as its
input:
$str="/a/b/c/"; (or) $str = "/a/b/c/d/";
What i need is that regardless of the input it should always be able
to extract "c" from the
above strings. I should not use split. Only by using regular
expressions i should be able to achieve this. Please help me to solve
this.
Thanks,
Deepan