Grats script using simplified regex

Published  Jan 20, 2011
Updated  Jan 20, 2011

Description

Was high one day, decided to make a grats script.

Syntax:

[!@.]grats|gratz|congrats|congratz [level|skill] [level|skill]

eg.

!grats 99 fishing !congratz dungeoneering 115

Enjoy:)

Download

Filename
Size
Date
Downloads
1.14 KB
Jan 20, 2011
237

Comments

Sign in to comment.
toclafane1   -  Nov 05, 2012

-.- >.>

More
 Respond  
Jethro   -  Nov 05, 2012

Let it go already. This thread is history judging by the date. :-|

More
 Respond  
toclafane1   -  Nov 05, 2012

@Jethro - I don't think he wants the help. :/

More
 Respond  
Newton3788   -  Jan 20, 2011

Thanks for the pointer, but not looking to improve my regex :P Hence "simplified" because I only know simple regex

More
 Respond  
Jethro   -  Jan 20, 2011

Your regex can be improved quite a bit:

/^[!@.]grat(s|z)|congrat(s|z)\b/iS
More
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.