<?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[Binärer Regex (mit VS2008)]]></title><description><![CDATA[<p>Ich habe folgendes Problem:<br />
Ich will eine Datei (Binäres format, also sind alle Zeichen, auch 00 drin) nach bestimmten Strings durchsuchen.<br />
Damit ich nicht manuell alle Kombinationen durchsuchen muss, wäre ein Regexp gut.<br />
Nur habe ich ich in C++ (Bin neu hier) noch nie Regexp verwende, also 1. Frage: Wie/Welche Regexp kann ich verwenden (habe VS2008)<br />
Am besten wäre hier auch ein submatching, muss aber nicht zwingend sein.<br />
2.Frage: Wie kann ich Regexp für mein Problem anwenden,da normale Strings doch durch das 00 beendet würden?</p>
<p>Mein Projekt ist eine MFC-Anwendung. Für Strings verwende ich CString. (Hab das Projekt nur fortgeführt, darum habe ich das gleich so übernommen)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/264794/binärer-regex-mit-vs2008</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 14:30:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/264794.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Apr 2010 07:39:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Binärer Regex (mit VS2008) on Tue, 13 Apr 2010 07:39:34 GMT]]></title><description><![CDATA[<p>Ich habe folgendes Problem:<br />
Ich will eine Datei (Binäres format, also sind alle Zeichen, auch 00 drin) nach bestimmten Strings durchsuchen.<br />
Damit ich nicht manuell alle Kombinationen durchsuchen muss, wäre ein Regexp gut.<br />
Nur habe ich ich in C++ (Bin neu hier) noch nie Regexp verwende, also 1. Frage: Wie/Welche Regexp kann ich verwenden (habe VS2008)<br />
Am besten wäre hier auch ein submatching, muss aber nicht zwingend sein.<br />
2.Frage: Wie kann ich Regexp für mein Problem anwenden,da normale Strings doch durch das 00 beendet würden?</p>
<p>Mein Projekt ist eine MFC-Anwendung. Für Strings verwende ich CString. (Hab das Projekt nur fortgeführt, darum habe ich das gleich so übernommen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1881935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1881935</guid><dc:creator><![CDATA[Flamefire]]></dc:creator><pubDate>Tue, 13 Apr 2010 07:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to Binärer Regex (mit VS2008) on Tue, 13 Apr 2010 07:57:36 GMT]]></title><description><![CDATA[<p>Flamefire schrieb:</p>
<blockquote>
<p>da normale Strings doch durch das 00 beendet würden?</p>
</blockquote>
<p>Das ist so nicht richtig, normale strings werden in der Regel durch 00000000 beendet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1881939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1881939</guid><dc:creator><![CDATA[FrEEzE2046]]></dc:creator><pubDate>Tue, 13 Apr 2010 07:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to Binärer Regex (mit VS2008) on Tue, 13 Apr 2010 08:01:48 GMT]]></title><description><![CDATA[<p>Programmieren die von Mathe keine Ahnung haben. log(0) kannste gern mal ausrechnen. Ist nicht definiert (Auch wenn man 0^x=0 nehmen KANN)</p>
<p>Ok Spaß beiseite, ich habe NICHT gefragt, wie die Strings terminiert werden, sondern wie ich regexp verwende. Und erweitert noch wie ich regexp auf etwas anwende, das kein &quot;normaler String&quot; ist. In perl z.B. geht das. Wie geht es in C++?</p>
<p>Edit: Oh, er hat das log(0) bemerkt <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1881944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1881944</guid><dc:creator><![CDATA[Flamefire]]></dc:creator><pubDate>Tue, 13 Apr 2010 08:01:48 GMT</pubDate></item><item><title><![CDATA[Reply to Binärer Regex (mit VS2008) on Tue, 13 Apr 2010 08:07:22 GMT]]></title><description><![CDATA[<p>Flamefire schrieb:</p>
<blockquote>
<p>Wie geht es in C++?</p>
</blockquote>
<p>In Standard-C++ gibt es keine Regexp, insofern müsstest du die Dokumentation der verwendeten Bibliothek konsultieren.</p>
<p>Ein Nullbyte kannst du mit \0 angeben. Du kannst auch beliebige Bytewerte in Strings mit dem &quot;\x&quot;-Präfix, gefolgt von der gewünschten Zahl als Hexadezimalzahl notieren: \x00 für ein Nullbyte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1881947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1881947</guid><dc:creator><![CDATA[Nukularfüsiker]]></dc:creator><pubDate>Tue, 13 Apr 2010 08:07:22 GMT</pubDate></item><item><title><![CDATA[Reply to Binärer Regex (mit VS2008) on Tue, 13 Apr 2010 08:13:20 GMT]]></title><description><![CDATA[<p>Flamefire schrieb:</p>
<blockquote>
<p>Edit: Oh, er hat das log(0) bemerkt <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="😉"
    /></p>
</blockquote>
<p>Ich hol mir'n Kaffee. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>EDIT:<br />
wobei für x &gt; 0 gilt:<br />
0^x = 0<br />
und<br />
0^0 = 1</p>
<p>Aber lassen wir das^^.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1881950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1881950</guid><dc:creator><![CDATA[FrEEzE2046]]></dc:creator><pubDate>Tue, 13 Apr 2010 08:13:20 GMT</pubDate></item><item><title><![CDATA[Reply to Binärer Regex (mit VS2008) on Tue, 13 Apr 2010 19:16:36 GMT]]></title><description><![CDATA[<p>Nukularfüsiker schrieb:</p>
<blockquote>
<p>In Standard-C++ gibt es keine Regexp, insofern müsstest du die Dokumentation der verwendeten Bibliothek konsultieren.</p>
<p>Ein Nullbyte kannst du mit \0 angeben. Du kannst auch beliebige Bytewerte in Strings mit dem &quot;\x&quot;-Präfix, gefolgt von der gewünschten Zahl als Hexadezimalzahl notieren: \x00 für ein Nullbyte.</p>
</blockquote>
<p>Das ist ja mein Problem: Ich brauche eine Regexp-Bibliothek, die mit diesen &quot;seltsamen&quot; Strings umgehen kann. Und ein Beispiel, wie ich die verwende.</p>
<p>Edit: hab gerade durch Zufall was gefunden. Nennt sich DEELX Header und ist genau das was ich suche <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /><br />
Hat sich also erledigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1881996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1881996</guid><dc:creator><![CDATA[Flamefire]]></dc:creator><pubDate>Tue, 13 Apr 2010 19:16:36 GMT</pubDate></item></channel></rss>