I have the following string in a XML file..

<pre>&lt;/BODY&gt;&lt;/HTML&gt; ------_=_NextPart_002_01C84D7E.9133E008-- Content-Disposition: attachment; filename="footer.txt"  Content-Transfer-Encoding: base64    G:\Test\Attach\footer.txt  --------------Boundary-00=_BLD1cvEPKmuNkgPvUNY3--  Content-Disposition: attachment; filename="Press.xls"  Content-Transfer-Encoding: base64    g:\Test\Attach\Debankan\Press.xls  ------_=_NextPart_001_01C84D7E.9133E008--  </pre>

I will pass the filename and i want to get the path from the above string.. For ex.. if i pass "footer.txt" i want the result path as "G:\Test\Attach\footer.txt".. Can someone help me out?. I will be using C#. Can someone tell what String Methods will be useful.. Please it quite urgent..


Although you could do this with the string methods available.
It is better to use the Regex class here.
Look at this
You can find an example of a path regex here