<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem mit Boost Regex]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mich das Wochenende mit regex von Boost gequält und kommen einfach nicht auf die Lösung. Bei dem folgenden Stückchen Code kommen ich nicht auf den Fehler, es wird in der Variabel b immer 0 ausgegeben.</p>
<pre><code class="language-cpp">boost::regex ex(&quot;123&quot;);
string str(&quot;inhalt 123&quot;);
bool b = boost::regex_match(str, ex);
cout &lt;&lt; &quot;b=&quot; &lt;&lt; b &lt;&lt; endl;
</code></pre>
<p>Ich habe auch schon versucht eine CString zu übergeben, aber auch erhalte ich immer eine 0 als Ergebnis.</p>
<p>Wäre für jede Hilfe dankbar...<br />
Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180812/problem-mit-boost-regex</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 23:29:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180812.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 May 2007 06:27:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Boost Regex on Mon, 07 May 2007 06:27:31 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mich das Wochenende mit regex von Boost gequält und kommen einfach nicht auf die Lösung. Bei dem folgenden Stückchen Code kommen ich nicht auf den Fehler, es wird in der Variabel b immer 0 ausgegeben.</p>
<pre><code class="language-cpp">boost::regex ex(&quot;123&quot;);
string str(&quot;inhalt 123&quot;);
bool b = boost::regex_match(str, ex);
cout &lt;&lt; &quot;b=&quot; &lt;&lt; b &lt;&lt; endl;
</code></pre>
<p>Ich habe auch schon versucht eine CString zu übergeben, aber auch erhalte ich immer eine 0 als Ergebnis.</p>
<p>Wäre für jede Hilfe dankbar...<br />
Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280035</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 07 May 2007 06:27:31 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Boost Regex on Mon, 07 May 2007 08:14:28 GMT]]></title><description><![CDATA[<p>Du hast ja auch kein richtigen regulären Ausdruck dort. Mit deinem Ausdruck wird nur geguckt ob der String gleich &quot;123&quot; ist. Wenn du wissen willst ob &quot;123&quot; am Ende des String ist geht das mit &quot;.*123&quot; und wenn es egal ist wo der steht, dann mit &quot;.*123.*&quot;. Ein regulärer Ausdruck wird nicht nur bis zu einem Space angewandt, sondern immer auf den ganzen String.</p>
<p>Greetz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280090</guid><dc:creator><![CDATA[Vellas]]></dc:creator><pubDate>Mon, 07 May 2007 08:14:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Boost Regex on Mon, 07 May 2007 08:26:54 GMT]]></title><description><![CDATA[<p>Danke erstmal das macht Sinn,</p>
<p>ich hatte auch als regex &quot;[iI]nhalt&quot; auf demselben String probiert, auch mit dem Ergebnis 0. Wenn ich zuhause bin werde ich mal Ausdruck und String gleichsetzen, so müsste ich doch auf jeden Fall ein true zurückbekommen, oder?</p>
<p>Gruß Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280101</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 07 May 2007 08:26:54 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Boost Regex on Mon, 07 May 2007 08:31:00 GMT]]></title><description><![CDATA[<p>justchris schrieb:</p>
<blockquote>
<p>Wenn ich zuhause bin werde ich mal Ausdruck und String gleichsetzen, so müsste ich doch auf jeden Fall ein true zurückbekommen, oder?</p>
</blockquote>
<p>Macht nicht viel Sinn, aber genau so ist es. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
(String == Ausdruck) = true</p>
<p>Greetz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280104</guid><dc:creator><![CDATA[Vellas]]></dc:creator><pubDate>Mon, 07 May 2007 08:31:00 GMT</pubDate></item></channel></rss>