<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Apr 8, 2010, at 9:02 AM, RA Friedrich Vosberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Morning.<br><br>I want to trim a string. Given is a macro that expands into a string, e.g. the path and name of a file (/Users/name/Documents/Clients/file.tex). I want to cut all characters on the left of /Documents.<br><br></div></blockquote></div><div><br></div><div>\documentclass{article}</div><div>\usepackage{xstring}</div><div><br></div><div>\begin{document}</div><div>\def\tmp{/Users/Documents/files/myfile.tex}</div><div><br></div><div>\StrBehind{\tmp}{Users}</div><div>\end{document}</div><div><br></div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>-- </div><div>Alan Munn</div><div><a href="mailto:amunn@gmx.com">amunn@gmx.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br></body></html>