0

Hi,

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..

Thanks
Raja

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by ddanbe
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.