On Thu, 10 Oct 2002, Javeed SAR wrote:

> Hi all,
>
>
> I want get the last part of this sentence excluding @@
> i.e i should get my output in a variable($put) like this for the following
> sentence:
>
> EnternalID_GetDateofBirth.vbp
>
>
> M:\jav_test\Technical_Docs\.@@\main\int_1_2b\techdoc_1_2b\2\Common_Controls\
> main\int_1_2b\techdoc_1_2b\1\Code_Examples\main\int_1_2b\techdoc_1_2b\2\Exte
> rnalID\main\int_1_2b\techdoc_1_2b\1\GetDateofBirth\main\int_1_2b\techdoc_1_2
> b\1\EnternalID_GetDateofBirth.vbp@@
>
>

Would this suffice :

$longpath = "M:\jav_test\........\EnternalID_GetDateofBirth.vbp@@";
($put = $longpath) =~ s/.*\\(.*)\@\@$/$1/;
print "$put\n";

George.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to