<?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[Qt regex modifier]]></title><description><![CDATA[<p dir="auto">I'm trying to use a regex that uses <code>\u</code> modifier:</p>
<pre><code>(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))
</code></pre>
<p dir="auto">It would match strings like <code>.com</code>, the tld of an url, but when I call <code>isValid()</code> it returns false and when running I got this warning:</p>
<blockquote>
<p dir="auto">QRegularExpressionPrivate::doMatch(): called on an invalid QRegularExpression object</p>
</blockquote>
<p dir="auto">Is there a solution? What can I be doing in order to solve this?</p>
]]></description><link>https://forum.qt.io/topic/61919/qt-regex-modifier</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 22:04:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/61919.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Dec 2015 01:33:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt regex modifier on Mon, 21 Dec 2015 00:21:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">To help you with your regular expression development, you can use the <a href="http://doc-snapshots.qt.io/qt5-5.6/qtwidgets-tools-regularexpression-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">regular expression tool</a>. It's available starting with Qt 5.6</p>
]]></description><link>https://forum.qt.io/post/303694</link><guid isPermaLink="true">https://forum.qt.io/post/303694</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 21 Dec 2015 00:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:47:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> Yes, it resembles perl style, it's called PCRE.</p>
]]></description><link>https://forum.qt.io/post/303651</link><guid isPermaLink="true">https://forum.qt.io/post/303651</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:47:58 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:46:18 GMT]]></title><description><![CDATA[<p dir="auto">@Minupi<br />
Good to hear. :)<br />
It says its perl syntax but maybe PHP uses perl style or reverse?</p>
]]></description><link>https://forum.qt.io/post/303650</link><guid isPermaLink="true">https://forum.qt.io/post/303650</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:46:18 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:44:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> Thank you, helped a lot. I realised that <code>QRegularExpression</code> is using the same syntax as PHP.</p>
]]></description><link>https://forum.qt.io/post/303649</link><guid isPermaLink="true">https://forum.qt.io/post/303649</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:43:36 GMT]]></title><description><![CDATA[<p dir="auto">@Minupi<br />
Oh yes always escape "\"<br />
Super- :)</p>
]]></description><link>https://forum.qt.io/post/303648</link><guid isPermaLink="true">https://forum.qt.io/post/303648</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:43:36 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:42:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> I fixed it, and it's working now... You just have to escape the <code>\x</code>, like <code>\\x</code>, for instance: <code>[a-z\\x{00a1}-\\x{ffff}0-9]*</code>.</p>
]]></description><link>https://forum.qt.io/post/303647</link><guid isPermaLink="true">https://forum.qt.io/post/303647</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:36:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> Yes, I did and I got an error saying:</p>
<blockquote>
<p dir="auto">hex constants must have at least one hex digit</p>
</blockquote>
]]></description><link>https://forum.qt.io/post/303646</link><guid isPermaLink="true">https://forum.qt.io/post/303646</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:21:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yodusow-bardon">@<bdi>yodusow-bardon</bdi></a> said:<br />
btw<br />
did u try<br />
\x{FFFF}</p>
]]></description><link>https://forum.qt.io/post/303645</link><guid isPermaLink="true">https://forum.qt.io/post/303645</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:21:01 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:13:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> It's kinda nonsense as <code>QRegularExpresion</code> came to be better than <code>QRegExp</code>, but anyway, let's stick with it as it's the only option left here.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.qt.io/post/303643</link><guid isPermaLink="true">https://forum.qt.io/post/303643</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:13:57 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:07:41 GMT]]></title><description><![CDATA[<p dir="auto">@Minupi said:<br />
Well if it just accepts a \u I agree it seems more sensible than to figure out how to do \u like with QRegularExpression.</p>
]]></description><link>https://forum.qt.io/post/303641</link><guid isPermaLink="true">https://forum.qt.io/post/303641</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 15:04:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> I might, but the thing is that I need to use <code>\u</code> as it has a range:  <code>\uffff0-9</code>.</p>
<p dir="auto">I think that I'm going to drop the <code>QRegularExpression</code> and use <code>QRegExp</code> instead.</p>
]]></description><link>https://forum.qt.io/post/303640</link><guid isPermaLink="true">https://forum.qt.io/post/303640</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 20 Dec 2015 15:04:33 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 14:52:08 GMT]]></title><description><![CDATA[<p dir="auto">@Minupi said:<br />
hmm looking in<br />
qregularexpression.cpp<br />
I only see<br />
QT_TRANSLATE_NOOP("QRegularExpression", "PCRE does not support \L, \l, \N{name}, \U, or \u"),</p>
<p dir="auto">but at same time docs says "It fully supports Unicode"</p>
<p dir="auto">Does it work if u put the unicode directly in the string ?</p>
]]></description><link>https://forum.qt.io/post/303638</link><guid isPermaLink="true">https://forum.qt.io/post/303638</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 20 Dec 2015 14:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 14:42:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> I tried it too and it doesn't work. I my case I tried - it would match anything, including unicode characters:</p>
<pre><code>[a-z\u00a1-\uffff0-9]*
</code></pre>
<p dir="auto">And when calling <code>isValid</code> it returns false along with the same warning, even using <code>UseUnicodePropertiesOption</code>.</p>
]]></description><link>https://forum.qt.io/post/303635</link><guid isPermaLink="true">https://forum.qt.io/post/303635</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 20 Dec 2015 14:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to Qt regex modifier on Sun, 20 Dec 2015 09:02:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yodusow-bardon">@<bdi>yodusow-bardon</bdi></a> said:</p>
<p dir="auto">Hi<br />
I wonder if<br />
QRegularExpression::UseUnicodePropertiesOption	0x0040<br />
<a href="http://doc.qt.io/qt-5/qregularexpression.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qregularexpression.html</a><br />
is what you are after?</p>
]]></description><link>https://forum.qt.io/post/303600</link><guid isPermaLink="true">https://forum.qt.io/post/303600</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sun, 20 Dec 2015 09:02:56 GMT</pubDate></item></channel></rss>