<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236854</link>
    <title>MATLAB Central Newsreader - sscanf issue with xml-like format</title>
    <description>Feed for thread: sscanf issue with xml-like format</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 01 Oct 2008 13:58:10 -0400</pubDate>
      <title>sscanf issue with xml-like format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236854#603180</link>
      <author>E </author>
      <description>In Matlab R13 I'm trying to do the following :&lt;br&gt;
text = sscanf('&amp;lt;A&amp;gt;blabla&amp;lt;/A&amp;gt;','&amp;lt;A&amp;gt;%s&amp;lt;/A&amp;gt;')&lt;br&gt;
&lt;br&gt;
which results in : &lt;br&gt;
text = blabla&amp;lt;/A&amp;gt;&lt;br&gt;
&lt;br&gt;
Obviously I wanted :&lt;br&gt;
text = blabla&lt;br&gt;
&lt;br&gt;
Any ideas on how to do this ? Is regexp a way out ?</description>
    </item>
    <item>
      <pubDate>Wed, 01 Oct 2008 17:29:02 -0400</pubDate>
      <title>Re: sscanf issue with xml-like format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236854#603219</link>
      <author>Donn Shull</author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
Yes regexprep in R13 may be the way to go:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; text = regexprep('&amp;lt;A&amp;gt;blabla&amp;lt;/A&amp;gt;', '&amp;lt;A&amp;gt;(\w*)&amp;lt;/A&amp;gt;', '$1', 'tokenize')&lt;br&gt;
&lt;br&gt;
text =&lt;br&gt;
&lt;br&gt;
blabla&lt;br&gt;
&lt;br&gt;
You may need to tweak the token.&lt;br&gt;
&lt;br&gt;
Donn&lt;br&gt;
&lt;br&gt;
&quot;E &quot; &amp;lt;ehelden@hotmail.com&amp;gt; wrote in message &amp;lt;gbvvli$osq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; In Matlab R13 I'm trying to do the following :&lt;br&gt;
&amp;gt; text = sscanf('&amp;lt;A&amp;gt;blabla&amp;lt;/A&amp;gt;','&amp;lt;A&amp;gt;%s&amp;lt;/A&amp;gt;')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; which results in : &lt;br&gt;
&amp;gt; text = blabla&amp;lt;/A&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Obviously I wanted :&lt;br&gt;
&amp;gt; text = blabla&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any ideas on how to do this ? Is regexp a way out ?</description>
    </item>
  </channel>
</rss>

