Hey,<div><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 12:00 AM, Ahmed Ibrahim Khalil <span dir="ltr"><<a href="mailto:ahmedibrahimkhali@gmail.com" target="_blank">ahmedibrahimkhali@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi All,<br><br></div>I've taken a look at that bug. And also had taken a look at the mUrlRegExp inside the PostWidget.cpp file.<br>

<br><br></div><div>I am not good at RegExps so I thought to jump and ask the guys in Freenode's #regexp about a good regular expression, that matches this case and doesn't append the trailing character to the url.<br>

</div></div></blockquote><div><br></div><div>If you're looking for a good RegExp to match urls, we have one in kde-telepathy, which is borrowed from Konversation, which apparently went through years of improvements etc. The best thing is that it's a QRegExp already. We've been using it for years and it works just fine. Feel free to borrow it from here:</div>

<div><br></div><div><a href="http://quickgit.kde.org/?p=ktp-common-internals.git&a=blob&h=46cf566bf3e5388bc12f84dd27c41863d025acaf&hb=347988c448dd503d7f1c813dd5b96ac293bcd20a&f=KTp%2Ftext-parser.cpp">http://quickgit.kde.org/?p=ktp-common-internals.git&a=blob&h=46cf566bf3e5388bc12f84dd27c41863d025acaf&hb=347988c448dd503d7f1c813dd5b96ac293bcd20a&f=KTp%2Ftext-parser.cpp</a></div>

<div> </div><div></div></div><div>Cheers</div>-- <br><div><span style="color:rgb(102,102,102)">Martin Klapetek | KDE Developer</span></div>
</div>