<?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[PCRE]]></title><description><![CDATA[<p>Hi,</p>
<p>Wie kann ich PCRE in einem C++ Programm verwenden? (Original-PCRE-Sourcen)<br />
Ich möchte nämlich die (PHP-)Funktionen preg_match[_all] und preg_replace verwenden.<br />
Wie muss ich die Sourcen kompilieren, und wie in ein Programm einbinden und ausprobieren? Kennt jmd ein nützliches HowTo oder kann mir das hier wer erklären?</p>
<p>P.S.: Es sollte keine dll werden, also PCRE &quot;fest&quot; in die Datei einkompiliert werden.</p>
<p>MfG, Andreas</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/118911/pcre</link><generator>RSS for Node</generator><lastBuildDate>Fri, 21 Aug 2026 18:08:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/118911.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Aug 2005 14:29:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PCRE on Thu, 25 Aug 2005 14:29:03 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Wie kann ich PCRE in einem C++ Programm verwenden? (Original-PCRE-Sourcen)<br />
Ich möchte nämlich die (PHP-)Funktionen preg_match[_all] und preg_replace verwenden.<br />
Wie muss ich die Sourcen kompilieren, und wie in ein Programm einbinden und ausprobieren? Kennt jmd ein nützliches HowTo oder kann mir das hier wer erklären?</p>
<p>P.S.: Es sollte keine dll werden, also PCRE &quot;fest&quot; in die Datei einkompiliert werden.</p>
<p>MfG, Andreas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/858395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/858395</guid><dc:creator><![CDATA[cppcluster]]></dc:creator><pubDate>Thu, 25 Aug 2005 14:29:03 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Thu, 25 Aug 2005 14:36:54 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>das geht z. B. mit Boost:<br />
<a href="http://www.boost.org/libs/regex/doc/" rel="nofollow">http://www.boost.org/libs/regex/doc/</a></p>
<p>Gibt aber auch andere, kleinere Libs dafür.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/858408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/858408</guid><dc:creator><![CDATA[CarstenJ]]></dc:creator><pubDate>Thu, 25 Aug 2005 14:36:54 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Thu, 25 Aug 2005 14:38:11 GMT]]></title><description><![CDATA[<p>CarstenJ: Darum gings ihm nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/858410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/858410</guid><dc:creator><![CDATA[php]]></dc:creator><pubDate>Thu, 25 Aug 2005 14:38:11 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Fri, 26 Aug 2005 09:22:34 GMT]]></title><description><![CDATA[<p>willst du jetzt eine dll statisch linken, oder wie jetz?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/858852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/858852</guid><dc:creator><![CDATA[DocJunioR]]></dc:creator><pubDate>Fri, 26 Aug 2005 09:22:34 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Fri, 26 Aug 2005 10:39:44 GMT]]></title><description><![CDATA[<p>cppcluster schrieb:</p>
<blockquote>
<p>(Original-PCRE-Sourcen) ... Es sollte keine dll werden ...</p>
</blockquote>
<p>DocJunioR schrieb:</p>
<blockquote>
<p>willst du jetzt eine dll statisch linken, oder wie jetz?</p>
</blockquote>
<p>@php: Auch wenn es nicht um das Mittel boost::regex ging, ging höchst wahrscheinlich dennoch um den Zweck, den es erfüllt. Ich finde es nicht falsch, das vorzuschlagen, was zum Mittel C++ am besten passt.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9370">@cppcluster</a>: <a href="http://de3.php.net/manual/de/faq.build.php" rel="nofollow">http://de3.php.net/manual/de/faq.build.php</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/858916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/858916</guid><dc:creator><![CDATA[lesefehler]]></dc:creator><pubDate>Fri, 26 Aug 2005 10:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Fri, 26 Aug 2005 10:55:42 GMT]]></title><description><![CDATA[<p>Man kann auch die Doku von PCRE runterladen, wo auch der build-Vorgang dokumentiert ist. <a href="http://gnuwin32.sourceforge.net/packages/pcre.htm" rel="nofollow">http://gnuwin32.sourceforge.net/packages/pcre.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/858931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/858931</guid><dc:creator><![CDATA[lesefehler]]></dc:creator><pubDate>Fri, 26 Aug 2005 10:55:42 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Fri, 26 Aug 2005 11:03:15 GMT]]></title><description><![CDATA[<p>lesefehler schrieb:</p>
<blockquote>
<p>@php: Auch wenn es nicht um das Mittel boost::regex ging, ging höchst wahrscheinlich dennoch um den Zweck, den es erfüllt. Ich finde es nicht falsch, das vorzuschlagen, was zum Mittel C++ am besten passt.</p>
</blockquote>
<p>Dabei sollte dann aber nicht unerwähnt bleiben, das PCRE (und eben auch PHP) Named Subpatterns unterstützt, eine sehr nützliche Erweiterung aus Python, die Reguläre Ausdrücke verständlicher und vor allem wartbarer macht. Dieses nette Feature bringt boost::regex leider nicht mit. (Es hat schon lange gedauert bis der boost::regex Author endlich bereit war, case-sensitivitäts Umschaltungen im Ausdruck mittels '(?i:...)' zu unterstützen.)</p>
<p>boost::regex ist also bei aller boost-Freundschaft mitnichten ein vollständiger Ersatz für die mittels PCRE implementierten PHP-Funktionen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/858935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/858935</guid><dc:creator><![CDATA[KleinerUnterschied]]></dc:creator><pubDate>Fri, 26 Aug 2005 11:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Fri, 26 Aug 2005 14:09:49 GMT]]></title><description><![CDATA[<p>lesefehler schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9370">@cppcluster</a>: <a href="http://de3.php.net/manual/de/faq.build.php" rel="nofollow">http://de3.php.net/manual/de/faq.build.php</a></p>
</blockquote>
<p>Ich will kein PHP compilieren..<br />
Ich will lediglich die pcre_match &amp; pcre_replace - Funktionen.</p>
<p>lesefehler schrieb:</p>
<blockquote>
<p>Man kann auch die Doku von PCRE runterladen, wo auch der build-Vorgang dokumentiert ist. <a href="http://gnuwin32.sourceforge.net/packages/pcre.htm" rel="nofollow">http://gnuwin32.sourceforge.net/packages/pcre.htm</a></p>
</blockquote>
<p>Meinst du das &gt; <a href="http://gnuwin32.sourceforge.net/install.html" rel="nofollow">http://gnuwin32.sourceforge.net/install.html</a> &lt;? Ich sehe nicht wirklich Anweisungen für einen Compiler..</p>
<p>KleinerUnterschied schrieb:</p>
<blockquote>
<p>Dabei sollte dann aber nicht unerwähnt bleiben, das PCRE (und eben auch PHP) Named Subpatterns unterstützt, eine sehr nützliche Erweiterung aus Python, die Reguläre Ausdrücke verständlicher und vor allem wartbarer macht.</p>
</blockquote>
<p>Ähm, was sind Named Subpatterns? Ich möchte einfach, dass z.b.</p>
<pre><code>/&lt;a&gt;(.*)&lt;\/a&gt;/
</code></pre>
<p>im string</p>
<pre><code>Ein Link:&lt;a&gt;Test&lt;/a&gt;
</code></pre>
<p>das &quot;Test&quot; matched.</p>
<p>mfG, Andreas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/859069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859069</guid><dc:creator><![CDATA[cppcluster]]></dc:creator><pubDate>Fri, 26 Aug 2005 14:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Fri, 26 Aug 2005 15:34:11 GMT]]></title><description><![CDATA[<p>ich meinte eigentlich den Link, der neben <strong>Documentation</strong> steht. Diesen hier: <a href="http://prdownloads.sourceforge.net/gnuwin32/pcre-6.3-doc.zip?download" rel="nofollow">http://prdownloads.sourceforge.net/gnuwin32/pcre-6.3-doc.zip?download</a><br />
Und falls du sie nicht gefunden hast, da sind die boost::regex Beispiele, wo auch Sachen mit URL-Matching dabei sind: <a href="http://www.boost.org/libs/regex/doc/examples.html" rel="nofollow">http://www.boost.org/libs/regex/doc/examples.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/859133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859133</guid><dc:creator><![CDATA[lesefehler]]></dc:creator><pubDate>Fri, 26 Aug 2005 15:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to PCRE on Sat, 27 Aug 2005 15:54:23 GMT]]></title><description><![CDATA[<p>lesefehler schrieb:</p>
<blockquote>
<p>ich meinte eigentlich den Link, der neben <strong>Documentation</strong> steht. Diesen hier: <a href="http://prdownloads.sourceforge.net/gnuwin32/pcre-6.3-doc.zip?download" rel="nofollow">http://prdownloads.sourceforge.net/gnuwin32/pcre-6.3-doc.zip?download</a></p>
</blockquote>
<p>Ja, da sind die build-Funktionen dokumentiert. z.b. --disable-cpp etc. Ich konnte leider nichts brauchbares finden..</p>
<p>lesefehler schrieb:</p>
<blockquote>
<p>Und falls du sie nicht gefunden hast, da sind die boost::regex Beispiele, wo auch Sachen mit URL-Matching dabei sind: <a href="http://www.boost.org/libs/regex/doc/examples.html" rel="nofollow">http://www.boost.org/libs/regex/doc/examples.html</a></p>
</blockquote>
<p>Ich _will_ keine Libs von &quot;Drittanbeitern&quot;, zum einen weil's sowieso schon beim Installieren fehler gab, zum anderen weil die wahrscheinlich nicht aktuell sind, zum dritten weil PHP die originalen Sourcen hat und nicht boost o.Ä.</p>
<p>mfG, Andreas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/859689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/859689</guid><dc:creator><![CDATA[cppcluster]]></dc:creator><pubDate>Sat, 27 Aug 2005 15:54:23 GMT</pubDate></item></channel></rss>