<?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[Regulärer Ausdruck]]></title><description><![CDATA[<p>Hallo, wie sieht ein regulärer Ausdruck aus, mit dem ich einen Bereich in einem Textdokument eingrenzen will? Also nehmen wir mal an ich habe eine Dokument und will vom Wort &quot;Hallo&quot; bis zum Wort &quot;Keks&quot; alles verarbeiten.<br />
D.h. ich brauche einen RA der diesen BEreich eingrenzt.<br />
Kann da jmd ein konkretes Beispiel zeigen??<br />
Thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/168151/regulärer-ausdruck</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 05:22:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/168151.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Dec 2006 09:08:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 09:08:55 GMT]]></title><description><![CDATA[<p>Hallo, wie sieht ein regulärer Ausdruck aus, mit dem ich einen Bereich in einem Textdokument eingrenzen will? Also nehmen wir mal an ich habe eine Dokument und will vom Wort &quot;Hallo&quot; bis zum Wort &quot;Keks&quot; alles verarbeiten.<br />
D.h. ich brauche einen RA der diesen BEreich eingrenzt.<br />
Kann da jmd ein konkretes Beispiel zeigen??<br />
Thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194492</guid><dc:creator><![CDATA[honolulu]]></dc:creator><pubDate>Tue, 19 Dec 2006 09:08:55 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 09:15:49 GMT]]></title><description><![CDATA[<p>Das hängt vermutlich damit zusammen, welche RA-Syntax du verwendest (da gibt es afaik keinen Standard, der von allen Anbietern verwendet wird). brauchbar könnte der Ausdruck <code>&quot;Hallo.*Keks&quot;</code> sein (. steht für &quot;beliebiges Zeichen&quot; und * für &quot;beliebig viele Wiederholungen des vorigen Wertes&quot;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194502</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 19 Dec 2006 09:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 09:18:55 GMT]]></title><description><![CDATA[<p>ich probiers mal aus, danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194504</guid><dc:creator><![CDATA[honolulu]]></dc:creator><pubDate>Tue, 19 Dec 2006 09:18:55 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 09:27:37 GMT]]></title><description><![CDATA[<p>honolulu schrieb:</p>
<blockquote>
<p>ich probiers mal aus, danke</p>
</blockquote>
<p>sollte es nicht funktionieren, bitte sag uns, mit welcher Programmierpsrache/welcher Library du ueberhaupt arbeitest <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/1194509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194509</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Tue, 19 Dec 2006 09:27:37 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 09:28:35 GMT]]></title><description><![CDATA[<p>habs so probiert, klappt aber nicht....</p>
<p>%option noyywrap<br />
%option outfile=&quot;test.c&quot;</p>
<p>%{#include&lt;stdio.h&gt;<br />
#include&lt;string.h&gt;<br />
#include&lt;stdlib.h&gt;<br />
%}</p>
<p>%%<br />
&quot;hallo.*keks&quot; printf(&quot;Hat geklappt&quot;);<br />
%%</p>
<p>int main()<br />
{<br />
yylex();<br />
return(0);<br />
}</p>
<p>die dadurch dann neu erstellte datei ist unverändert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194510</guid><dc:creator><![CDATA[honolulu]]></dc:creator><pubDate>Tue, 19 Dec 2006 09:28:35 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 10:33:27 GMT]]></title><description><![CDATA[<p>hi</p>
<p>mal eben gelext..</p>
<p>text.l</p>
<pre><code>%{
#include &lt;stdio.h&gt;
%}		

%%
&quot;hallo&quot;[A-Za-z0-9 \n]+&quot;keks&quot; 		{printf(&quot;\nXXX\n&quot;); }
%%

int main(){

	while (yylex()) ;

	return 0;
}
</code></pre>
<p>Makefile:</p>
<pre><code>#text.l
#lex.yy.c
#a.exe

all: a.exe
	./a.exe&lt;test.txt
a.exe: lex.yy.c
	gcc lex.yy.c -lFl
lex.yy.c: text.l
	flex text.l
</code></pre>
<p>test.txt</p>
<pre><code>$ make
flex text.l
gcc lex.yy.c -lFl
./a.exe&lt;test.txt
wat anderes

XXX         //edit zum verständnis: da stand dann &quot;hallo du keks&quot;

hallokeks  //hallokeks wird nicht angenommen
wat anderes
</code></pre>
<p>achte auf leerzeichen, zeilenumbrüche, und sonstige sachen, habe NICHT alles dabei. ist sicher ein wenig umständlich.<br />
&quot;hallokeks&quot; sollte bei mir nicht gefunden werden, &quot;hallo du keks&quot; schon.</p>
<p>gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194551</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Tue, 19 Dec 2006 10:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 10:11:31 GMT]]></title><description><![CDATA[<p>VIELEN VIELEN DANK!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194562</guid><dc:creator><![CDATA[honolulu]]></dc:creator><pubDate>Tue, 19 Dec 2006 10:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 10:46:16 GMT]]></title><description><![CDATA[<p>zitat:&quot;hallokeks&quot; sollte bei mir nicht gefunden werden, &quot;hallo du keks&quot; schon.</p>
<p>hab das jetz ma ausprobiert und genau das was nicht passieren soll passiert, also hallokeks wird gefunden und hallo du keks nicht....<br />
ist also genau verkehrt rum. wie muss es dann richtig lauten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194609</guid><dc:creator><![CDATA[honolulu]]></dc:creator><pubDate>Tue, 19 Dec 2006 10:46:16 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 12:53:10 GMT]]></title><description><![CDATA[<p>keine ahnung, was du da machst.<br />
aber lies einfach mal ein geeignetes skript, hier zum bleistift<br />
<a href="https://rnvs.informatik.tu-chemnitz.de/twiki/bin/view/Softwarewerkzeugeproseminar/Lex" rel="nofollow">https://rnvs.informatik.tu-chemnitz.de/twiki/bin/view/Softwarewerkzeugeproseminar/Lex</a><br />
und setz es um.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194746</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Tue, 19 Dec 2006 12:53:10 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 12:55:16 GMT]]></title><description><![CDATA[<p>so ich habs, der code war einfach nur falsch!!!</p>
<p>man muss nämlich den nehmen:<br />
&quot;hallo&quot;(.*?)&quot;keks&quot;</p>
<p>damit funktionierts.</p>
<p>trotzdem thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194750</guid><dc:creator><![CDATA[honolulu]]></dc:creator><pubDate>Tue, 19 Dec 2006 12:55:16 GMT</pubDate></item><item><title><![CDATA[Reply to Regulärer Ausdruck on Tue, 19 Dec 2006 13:05:35 GMT]]></title><description><![CDATA[<p>ok, der punkt sind alle zeichen, bei mir fehlten die sonderzeichen und satzzeichen.<br />
sollte nur ein ansatz sein. wenns jetzt geht, is ja gut.</p>
<p>so long</p>
<p>ps: und was ist mit newline? <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/1194758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194758</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Tue, 19 Dec 2006 13:05:35 GMT</pubDate></item></channel></rss>