it want to obtain from a string the next result: pri004

The string:
C:\Documents and Settings\nf\Desktop\pri004_02052007.xml

how can i do it....??

thx