# Strip path in FileLink

**URL:** https://discourse.jabref.org/t/strip-path-in-filelink/98
**Category:** Help
**Created:** [August 1, 2016, 7:22pm UTC](https://discourse.jabref.org/t/strip-path-in-filelink/98 "2016-08-01T19:22:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tgkolda](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@tgkolda](https://discourse.jabref.org/u/tgkolda)
#### Post date: [August 1, 2016, 7:22pm UTC](https://discourse.jabref.org/t/strip-path-in-filelink/98/1 "2016-08-01T19:22:59Z")

</div>

Hi folks,

I need to be able to use the export filter to output the filename without the entire path. This is because I will copy the resulting file (HTML) elsewhere to be shown online. I tried to use \Replace functionality, but I’m not sure where that goes in the format nor how to use special chacters. The use of \ caused an error in the exporter. This line runs fine but fails to do the replacement part:

\format[FileLink(pdf),Replace(“C:\Users\tgkolda\Documents\pubs\bibfiles,pubfiles/”)]{\pdf}

Thanks in advance for any assistance.
