<?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[Use regex within C++ program]]></title><description><![CDATA[<p dir="auto">Hello to all,</p>
<p dir="auto">I have to add a GUI to a C++ program that I'm working on. I'm trying to use regex in the C++ program, but I've found<br />
that only Microsoft Visual Studio 2012 compiler supports Regex  for C++.</p>
<p dir="auto">Should I do the C++ code in MSVisual Studio and once finish use my C++ source code to add the GUI in Qt or how can I do?</p>
<p dir="auto">Thanks in advance for the answer.</p>
]]></description><link>https://forum.qt.io/topic/33067/use-regex-within-c-program</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:28:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/33067.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Oct 2013 23:34:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Use regex within C++ program on Tue, 15 Oct 2013 23:44:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello SGaist and raven-worx,</p>
<p dir="auto">Thank you for your answers. I'll check the options you suggest me.</p>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.qt.io/post/199179</link><guid isPermaLink="true">https://forum.qt.io/post/199179</guid><dc:creator><![CDATA[Esperion]]></dc:creator><pubDate>Tue, 15 Oct 2013 23:44:42 GMT</pubDate></item><item><title><![CDATA[Reply to Use regex within C++ program on Tue, 15 Oct 2013 08:20:09 GMT]]></title><description><![CDATA[<p dir="auto">if you use Qt 5 i would suggest to use "QRegularExpression":<a href="http://qt-project.org/doc/qt-5.0/qtcore/qregularexpression.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.0/qtcore/qregularexpression.html</a> rather than QRegExp.<br />
Since QRegExp is buggy and not complete and not maintained anymore.<br />
QRegularExpression in contrary is a implementation of full Perl-compatible regular expressions in Qt.</p>
]]></description><link>https://forum.qt.io/post/199052</link><guid isPermaLink="true">https://forum.qt.io/post/199052</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Tue, 15 Oct 2013 08:20:09 GMT</pubDate></item><item><title><![CDATA[Reply to Use regex within C++ program on Tue, 15 Oct 2013 07:52:47 GMT]]></title><description><![CDATA[<p dir="auto">You can use QRegExp directly in your code, have a look "at the documentation":<a href="http://qt-project.org/doc/qt-4.8/qregexp.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qregexp.html#details</a> to see how to use it.</p>
]]></description><link>https://forum.qt.io/post/199048</link><guid isPermaLink="true">https://forum.qt.io/post/199048</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 15 Oct 2013 07:52:47 GMT</pubDate></item><item><title><![CDATA[Reply to Use regex within C++ program on Tue, 15 Oct 2013 01:36:15 GMT]]></title><description><![CDATA[<p dir="auto">Hello Evellyn,</p>
<p dir="auto">Thanks for your answer.</p>
<p dir="auto">I'm new to Qt and I'd like to know if having my current C++ code I can do something like below:</p>
<p dir="auto">My code looks like this and whithin while loop is where I need to a call to a function to parse a string using regex .</p>
<p dir="auto">So, can I include the QRegExp code inside my C++ code or the QRegExp code should go in another file and I need to call QRegExp function from C++ code? if yes, how?</p>
<p dir="auto">@#include &lt;iostream&gt;<br />
.<br />
.<br />
function1 ()<br />
//My original C++ code</p>
<p dir="auto">function2 (){<br />
//My original C++ code<br />
}</p>
<p dir="auto">My_RegexFunction(Input) {<br />
// Qt QRegExp code</p>
<p dir="auto">}</p>
<p dir="auto">int main () {<br />
.<br />
..<br />
//My original C++ code</p>
<p dir="auto">while () {</p>
<p dir="auto">Myvar=My_RegexFunction(Input);<br />
}<br />
}@</p>
<p dir="auto">Thanks in advance for the help.</p>
]]></description><link>https://forum.qt.io/post/199020</link><guid isPermaLink="true">https://forum.qt.io/post/199020</guid><dc:creator><![CDATA[Esperion]]></dc:creator><pubDate>Tue, 15 Oct 2013 01:36:15 GMT</pubDate></item><item><title><![CDATA[Reply to Use regex within C++ program on Tue, 15 Oct 2013 00:15:12 GMT]]></title><description><![CDATA[<p dir="auto">You can use the QRegExp class!<br />
And by using it, you gain portability at no extra cost! =D</p>
]]></description><link>https://forum.qt.io/post/199019</link><guid isPermaLink="true">https://forum.qt.io/post/199019</guid><dc:creator><![CDATA[Qt Qt Evellyn]]></dc:creator><pubDate>Tue, 15 Oct 2013 00:15:12 GMT</pubDate></item></channel></rss>