ejabberd - Comments for "IRC-module issues with colored numbers" https://www.ejabberd.im/node/1360 en [0-9]{1,2} should be https://www.ejabberd.im/node/1360#comment-21491 <p>[0-9]{1,2} should be replaced with ([0-9]|1[0-5]).</p> Fri, 22 Jun 2007 12:09:19 +0000 Merlyel comment 21491 at https://www.ejabberd.im You can try the https://www.ejabberd.im/node/1360#comment-3662 <p>You can try the code mod_irc_connection.erl</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>filter_mirc_colors(Msg) -&gt;<br /> case regexp:gsub(Msg, "(\\003[0-9]{1,2})(,[0-9][0-9])?", "") of<br /> {ok, Msg2, _} -&gt; Msg2;<br /> _ -&gt; Msg<br /> end.</p></div> Mon, 07 May 2007 12:20:13 +0000 robert comment 3662 at https://www.ejabberd.im Quote: https://www.ejabberd.im/node/1360#comment-3089 <p>mod_irc_connection.erl:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>filter_mirc_colors(Msg) -&gt;<br /> case regexp:gsub(Msg, "(\\003[0-9]+)(,[0-9]+)?", "") of<br /> {ok, Msg2, _} -&gt; Msg2;<br /> _ -&gt; Msg<br /> end.</p></div> <p>And maybe some other places?</p> <p>As far as I understtod, </p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p> case regexp:gsub(Msg, "(\\003[0-9]+)(,[0-9]+)?", "") of</p></div> <p>at least should be replaced with</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p> case regexp:gsub(Msg, "(\\003[0-9]{1,2})(,[0-9]{1,2})?", "") of</p></div> <p>But in fact there must be regexp that gets numbers from 0 to 15, while my regexp gets from 0 to 99 :(</p> Tue, 20 Feb 2007 23:25:48 +0000 Merlyel comment 3089 at https://www.ejabberd.im