>If I have a string:
>
> "c:\temp\filename.txt"
>
>Has anyone come up with a way of extracting only "filename.txt" with a one-liner?
>
>I know I can use LastIndexOf and SubString but I was just wondering if there was a one liner with Regex or something...
Have you looked at the VFP Toolkit for .NET? This has a BUNCH of VFP functions coded in .NET. So you can use the JustFName, JustPath, JustExt, etc functions just like you do in VFP.