<?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[wildcard machting algorithm problem]]></title><description><![CDATA[<p>Hi,</p>
<p>ich moechte folgendes problem loesen, weiss aber nicht so recht wie ich '*' matchen soll... den wildcard string in tokens zerlegen?</p>
<pre><code>String matching where one string contains wildcard characters
Given two strings where first string may contain wild card characters and 
second string is a normal string. Write a function that returns true if the 
two strings match. The following are allowed wild card characters in first 
string.
* --&gt; Matches with 0 or more instances of any character or set of characters.
? --&gt; Matches with any one character.
</code></pre>
<p>testfaelle:</p>
<pre><code>test(&quot;g*ks&quot;, &quot;geeks&quot;); // Yes
test(&quot;ge?ks*&quot;, &quot;geeksforgeeks&quot;); // Yes
test(&quot;g*k&quot;, &quot;gee&quot;);  // No because 'k' is not in second
test(&quot;*pqrs&quot;, &quot;pqrst&quot;); // No because 't' is not in first
test(&quot;abc*bcd&quot;, &quot;abcdhghgbcd&quot;); // Yes
test(&quot;abc*c?d&quot;, &quot;abcd&quot;); // No because second must have 2

test(&quot;*c*d&quot;, &quot;abcd&quot;); // Yes
test(&quot;*?c*d&quot;, &quot;abcd&quot;); // Yes
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/335921/wildcard-machting-algorithm-problem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 22:58:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/335921.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Dec 2015 23:22:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wildcard machting algorithm problem on Sun, 20 Dec 2015 23:22:59 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich moechte folgendes problem loesen, weiss aber nicht so recht wie ich '*' matchen soll... den wildcard string in tokens zerlegen?</p>
<pre><code>String matching where one string contains wildcard characters
Given two strings where first string may contain wild card characters and 
second string is a normal string. Write a function that returns true if the 
two strings match. The following are allowed wild card characters in first 
string.
* --&gt; Matches with 0 or more instances of any character or set of characters.
? --&gt; Matches with any one character.
</code></pre>
<p>testfaelle:</p>
<pre><code>test(&quot;g*ks&quot;, &quot;geeks&quot;); // Yes
test(&quot;ge?ks*&quot;, &quot;geeksforgeeks&quot;); // Yes
test(&quot;g*k&quot;, &quot;gee&quot;);  // No because 'k' is not in second
test(&quot;*pqrs&quot;, &quot;pqrst&quot;); // No because 't' is not in first
test(&quot;abc*bcd&quot;, &quot;abcdhghgbcd&quot;); // Yes
test(&quot;abc*c?d&quot;, &quot;abcd&quot;); // No because second must have 2

test(&quot;*c*d&quot;, &quot;abcd&quot;); // Yes
test(&quot;*?c*d&quot;, &quot;abcd&quot;); // Yes
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2480211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2480211</guid><dc:creator><![CDATA[santa]]></dc:creator><pubDate>Sun, 20 Dec 2015 23:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to wildcard machting algorithm problem on Sun, 20 Dec 2015 23:33:33 GMT]]></title><description><![CDATA[<p><a href="https://www.c-plusplus.net/forum/329141-full">Troll dich!</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2480215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2480215</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sun, 20 Dec 2015 23:33:33 GMT</pubDate></item></channel></rss>