<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/7289" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-04-17T11:16:37-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/7289</id>

		<entry>
		<author><name><![CDATA[Caribou]]></name></author>
		<updated>2004-04-17T11:16:37-04:00</updated>

		<published>2004-04-17T11:16:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35649#p35649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35649#p35649"/>
		<title type="html"><![CDATA[(Regexp) i need help making a case-insensitive pattern :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35649#p35649"><![CDATA[
well no im not sure, im a beginner, but thats the only way i found to find what i need, cause my using a list<br><br>Im using a list, to store data, by nickname, something like this <strong class="text-strong">nickname:data1:data2</strong><br><br>when i got many nicknames stored, the only way i find out was an lsearch with -regexp option to get it, with a pattern like "$nick:." it will return to me the position on the list, then with lindex i can return the data stored for this nickname.<br><br>i know wildcard would be better, regexp are usefull only with hard research<br><br>but i experimented few problems, with egghelp.org forum community i resolved this thing, i have to thank you all for helps you are giving for newbie like me.<br><br>i don't know if list its the fastest and best way to store and use data, data will never huge cause its a "temporaly" storage.<br><br>and sorry again for my weird english learned on internet <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4823">Caribou</a> — Sat Apr 17, 2004 11:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-16T14:04:01-04:00</updated>

		<published>2004-04-16T14:04:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35628#p35628</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35628#p35628"/>
		<title type="html"><![CDATA[(Regexp) i need help making a case-insensitive pattern :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35628#p35628"><![CDATA[
Are you sure you need regexp? How about using the faster (but mode limited) <a href="http://tcl.tk//man/tcl8.5/TclCmd/string.htm#M35" class="postlink">string match</a>?<blockquote class="uncited"><div>An ARE may begin with embedded options: a sequence (?xyz) (where xyz is one or more alphabetic characters) specifies options affecting the rest of the RE. These supplement, and can override, any options specified by the application. The available option letters are: ...</div></blockquote> <div class="codebox"><p>Code: </p><pre><code>regexp "(?i)hello" hElLo</code></pre></div>Also, check <a href="http://tcl.tk//man/tcl8.5/TclCmd/regexp.htm#M11" class="postlink">http://tcl.tk//man/tcl8.5/TclCmd/regexp.htm#M11</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Apr 16, 2004 2:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Caribou]]></name></author>
		<updated>2004-04-16T13:32:42-04:00</updated>

		<published>2004-04-16T13:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35625#p35625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35625#p35625"/>
		<title type="html"><![CDATA[(Regexp) i need help making a case-insensitive pattern :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35625#p35625"><![CDATA[
well i used [string tolower ?string?] and [string tolower ?pattern?] to do it myself cause i were bored<br><br>But i still wanna whats the exact sentense needed in pattern to do this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>would be better i think <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4823">Caribou</a> — Fri Apr 16, 2004 1:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Caribou]]></name></author>
		<updated>2004-04-16T12:55:03-04:00</updated>

		<published>2004-04-16T12:55:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35621#p35621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35621#p35621"/>
		<title type="html"><![CDATA[(Regexp) i need help making a case-insensitive pattern :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35621#p35621"><![CDATA[
Hello,<br><br>i wanna make a pattern who is not checking for majs, i mean a non-casesensitive or case-insensitive<br><br>thats mean in a string like "HeLLO" pattern "hEllO" will not work... i wanna make it working.. matching it, majs doesn't matter <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br>in mIRC scripting you have to use //i .. pattern becoming "/hEllO/i" but on TCL its not working by this way ..<br><br>Were reading help file about Regexp, i think its a Metasyntax, but i don't know how can i use it, they are not giving any example, and i can't understand a word... great help .. lol<br><br>Someone got any clue on how i can make a pattern non-casesensitive ?<br><br>Thanks for any help !<br><br><br><blockquote class="uncited"><div><strong class="text-strong">Help Thread :</strong><br><br>METASYNTAX<br>In addition to the main syntax described above, there are some special forms and miscellaneous syntactic facilities available.<br><br>Normally the flavor of RE being used is specified by application-dependent means. However, this can be overridden by a director. If an RE of any flavor begins with `***:', the rest of the RE is an ARE. If an RE of any flavor begins with `***=', the rest of the RE is taken to be a literal string, with all characters considered ordinary characters.<br><br>An ARE may begin with embedded options: a sequence (?xyz) (where xyz is one or more alphabetic characters) specifies options affecting the rest of the RE. These supplement, and can override, any options specified by the application. The available option letters are:<br><br>b <br>rest of RE is a BRE <br>c <br>case-sensitive matching (usual default) <br>e <br>rest of RE is an ERE <br><strong class="text-strong"><span style="color:red">i <br>case-insensitive matching (see MATCHING, below) </span></strong><br>m <br>historical synonym for n <br>n <br>newline-sensitive matching (see MATCHING, below) <br>p <br>partial newline-sensitive matching (see MATCHING, below) <br>q <br>rest of RE is a literal (``quoted'') string, all ordinary characters <br>s <br>non-newline-sensitive matching (usual default) <br>t <br>tight syntax (usual default; see below) <br>w <br>inverse partial newline-sensitive (``weird'') matching (see MATCHING, below) <br>x <br>expanded syntax (see below) <br>Embedded options take effect at the ) terminating the sequence. They are available only at the start of an ARE, and may not be used later within it.<br><br>In addition to the usual (tight) RE syntax, in which all characters are significant, there is an expanded syntax, available in all flavors of RE with the -expanded switch, or in AREs with the embedded x option. In the expanded syntax, white-space characters are ignored and all characters between a # and the following newline (or the end of the RE) are ignored, permitting paragraphing and commenting a complex RE. There are three exceptions to that basic rule:<br><br>a white-space character or `#' preceded by `\' is retained<br><br>white space or `#' within a bracket expression is retained<br><br>white space and comments are illegal within multi-character symbols like the ARE `(?:' or the BRE `\('<br><br>Expanded-syntax white-space characters are blank, tab, newline, and any character that belongs to the space character class.<br><br>Finally, in an ARE, outside bracket expressions, the sequence `(?#ttt)' (where ttt is any text not containing a `)') is a comment, completely ignored. Again, this is not allowed between the characters of multi-character symbols like `(?:'. Such comments are more a historical artifact than a useful facility, and their use is deprecated; use the expanded syntax instead.<br><br>None of these metasyntax extensions is available if the application (or an initial ***= director) has specified that the user's input be treated as a literal string rather than as an RE.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4823">Caribou</a> — Fri Apr 16, 2004 12:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
