Top

Explain regexes


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  8.7
Scores Submitted  3
Date Added  Mar 16, 2008
Last Updated  Mar 17, 2008
Tags  explain  help  regex  regexes 
  Bookmark and Share

Introduction

First of all, I would like to say, I did NOT make this. Msmo is the original author, I just recoded some MINOR stuff and made a little smaller.
Im releasing this cause it is extremely useful when you need help with regexes.

The commands are
/explain [#channel] [/regex/]
[!.@]explain [/regex/]
[!.@]regex [text] [/pattern/]

if [#channel] is not defined, it will echo the information. (or if the channel is invalid)

Pictures:




I havent checked for any bugs really, but if you find any, please report them!

Update01: Fixed a bunch of bugs and added a !regex trigger.
Update02: Fixed !regex a little, fixed some random bugs here and there aswell
Update03: Made it show the info in asc. order instead of desc.!
Update04: fixed a bug with the !explain trigger in channels.
Update05: Made it accept spaces, theyre not replaced with x20
Update06: Made the error messages return properly
Update07: Fixed the !regex trigger, it now also works properly with regexes with spaces.
Update08: Removed the 2 second delay on the first line when messaging to the channel.
Update09: Fixed some random bugs here and there, also made the !regex trigger a little better when validating the regexes, still not perfect.

Grab the Code

Comments

  (10)  RSS
mountaindew
Comments: 1,645
 
mIRC Snippet:  Explain regexes
Posted on Mar 16, 2008 3:42 pm
I like it :)
napa182
Comments: 1,153
 
mIRC Snippet:  Explain regexes
Posted on Mar 16, 2008 3:55 pm
nice and helpful =)
Lindrian
Comments: 755
 
mIRC Snippet:  Explain regexes
Posted on Mar 16, 2008 3:58 pm
I just noticed it is very buggy, im working on fixing it.
Lindrian
Comments: 755
 
mIRC Snippet:  Explain regexes
Posted on Mar 16, 2008 4:35 pm
All bugs I could think of are now FIXED! Also see the new updates :D
The only "problem" is that you will have to use \\x20 or \s for space, a regular "space" in the pattern will not be allowed.
jonesy44
Comments: 1,086
 
mIRC Snippet:  Explain regexes
Posted on Mar 16, 2008 5:53 pm
Still has me confused, im sorry to say :s
Gummo
Comments: 150
 
mIRC Snippet:  Explain regexes
Posted on Mar 16, 2008 11:27 pm
Perhaps you could try using msmo's validating regex to find where the regex is, then use $regml to use the pattern.
Lindrian
Comments: 755
 
mIRC Snippet:  Explain regexes
Posted on Mar 17, 2008 1:45 pm
jonesy44, what has you confused :)?
jonesy44
Comments: 1,086
 
mIRC Snippet:  Explain regexes
Posted on Mar 18, 2008 12:01 pm
well, i've read the help file, numerous times, but can't find a "use" or an "example" lol
mountaindew
Comments: 1,645
 
mIRC Snippet:  Explain regexes
Posted on Mar 18, 2008 1:47 pm
It goes through each thing in a regex statement and explains it, I don't get what there's not to get about it

The screen shots pretty much explain what it does.
Lindrian
Comments: 755
 
mIRC Snippet:  Explain regexes
Posted on Mar 18, 2008 2:28 pm
He might mean the regex engine itself?

Please Register or Login to start posting comments.
Bottom