diff --git a/README.mkdn b/README.mkdn index 76d281a..6cbce81 100644 --- a/README.mkdn +++ b/README.mkdn @@ -550,16 +550,18 @@ as well. can combine them, too: [a-z0-9] will match any digit and lowercase letter. There are also different shortcuts for character types: - * \d matches any digit; same as [0-9] - * \D matches any non-digit; same as [^0-9] - * \s matches any spaces - * \S matches any non-space - * \w matches any alphanumeric character; same as [a-zA-Z0-9_] - * \W matches any non-alphanumeric character; same as [^a-zA-Z0-9_] +
+    \d matches any digit; same as [0-9]
+    \D matches any non-digit; same as [^0-9]
+    \s matches any spaces
+    \S matches any non-space
+    \w matches any alphanumeric character; same as [a-zA-Z0-9_]
+    \W matches any non-alphanumeric character; same as [^a-zA-Z0-9_]
+    
You can include this inside brackets, too. - There's also a special character, \b. What \b does is make sure that + There's also a special character, \\b. What \\b does is make sure that you are at the beginning or end of a word. * So with that knowledge, let's try Kanaya:
@@ -570,12 +572,12 @@ as well.
     
Another feature of regular expressions is the ability to match - *repeated* characters. There are three repeat characters: the "*", the + *repeated* characters. There are three repeat characters: the "\*", the "+", "?", and "{m,n}". They work by playing them after the character, or character type you want to match. (So, you could say "\s+" or ".*") - The "*" character matches ZERO or more of that character. So, for - example, "f*" would match "f" and "ff" -- and any other character! + The "\*" character matches ZERO or more of that character. So, for + example, "f\*" would match "f" and "ff" -- and any other character! That's right, every character counts as matching it zero times. Yeah, it's weird. I suggest you use... @@ -650,14 +652,14 @@ either "bro" or "dog": Regexp: "\s" Replace with: " ribbit ", " ", " ", " ", " ", " ", etc.... - where " " is just a blank space added a bunch of times. (You can see - how many blank spaces you've added by clicking on the list.) You have - to add the spaces because each entry has the same chance of being - selected. (Yes, I know this could be improved.) If you add " ribbit " - and 9 spaces, " ribbit " will have a 1/10 chance of being picked. + where " " is just a blank space added a bunch of times. (You can see + how many blank spaces you've added by clicking on the list.) You have + to add the spaces because each entry has the same chance of being + selected. (Yes, I know this could be improved.) If you add " ribbit " + and 9 spaces, " ribbit " will have a 1/10 chance of being picked. - Also note that if you add more than one prefix or more than one - suffix, it will pick randomly from them instead of adding them both! + Also note that if you add more than one prefix or more than one + suffix, it will pick randomly from them instead of adding them both! * Mispeller: Be careful with thsi one. The mispeller will randomly mispell x% of diff --git a/trollquirks.mkdn b/trollquirks.mkdn new file mode 100644 index 0000000..24647e4 --- /dev/null +++ b/trollquirks.mkdn @@ -0,0 +1,178 @@ +Troll Quirks +============ + +Karkat +------ +
+REGEXP: "(.)"
+REPLACED WITH: "upper(\1)"
+
+ +Aradia +------ +
+REGEXP: "[oO]"
+REPLACE WITH: "0"
+
+ +#####After Prototyping +
+RANDOM REGEXP: "\s"
+REPLACED WITH: " ribbit ", " ", " ", " ", " ", " ", etc....
+
+ +Tavros +------ +
+REGEXP: "\b(\w)(\w*)"
+REPLACED WITH: "lower(\1)upper(\2)"
+
+
+REGEXP: "\.?"
+WITH: ","
+
+ +Sollux +------ +#####Pre-blind +
+REGEXP: "[iI]"
+REPLACE WITH: "\1\1"
+
+
+REGEXP: "[sS]"
+REPLACE WITH: "2"
+
+
+REGEXP: "\btoo?\b"
+REPLACE WITH: "two"
+
+ +#####Blind +
+REGEXP: "[oO]"
+REPLACE WITH: "0"
+
+ +Nepeta +------ +
+PREFIX: ":33 < "
+
+
+REGEXP: "[eE][eE]"
+REPLACE WITH: "33"
+
+ +Kanaya +------ +
+REGEXP: "\b(\w)"
+REPLACE WITH: "upper(\1)
+
+ +Terezi +------ +
+REGEXP: "[aA]"
+REPLACE WITH: "4"
+
+
+REGEXP: "[iI]"
+REPLACE WITH: "1"
+
+
+REGEXP: "[eE]"
+REPLACE WITH: "3"
+
+
+REGEXP: "(.)"
+REPLACE WITH: "upper(\1)"
+
+ +Vriska +------ +
+REGEXP: "[bB]"
+REPLACE WITH: "8"
+
+
+RANDOM REGEXP: "([aeiouAEIOU])"
+REPLACE WITH: "\1\1\1\1\1\1\1\1", "\1", "\1", "\1", "\1", "\1", etc........
+
+
+RANDOM REGEXP: "([\.\?,!]$)"
+REPLACE WITH: "\1\1\1\1\1\1\1\1", "\1", "\1", "\1", "\1", "\1", etc........
+
+
+REPLACE: ":"
+WITH: "::::"
+
+ +Keep in mind that the RANDOM REGEXP ones require the extra "\\1"s to be added in order to not happen all the time. If you want those quirks to happen less often, add more "\\1". + +Equius +------ +
+PREFIX: "D --> "
+
+
+REGEXP: "[lL][oO][oO]"
+REPLACE WITH: "100"
+
+
+REGEXP: "[xX]"
+REPLACE WITH: "%"
+
+
+REGEXP: "(\b[sS][tT][rR][oO][nN][gG]\w*)"
+REPLACE WITH: "upper(\1)"
+
+
+REGEXP: "[oO][oO]"
+REPLACE WITH: "00"
+
+ +Gamzee +------ +#####Version 1: "HoNk HoNk" +
+REGEXP: "([a-zA-Z])([a-zA-Z])"
+REPLACED WITH: "upper(\1)\2"
+
+
+REGEXP: "([a-z])([a-z])\b"
+REPLACED WITH: "\1upper(\2)"
+
+ +#####Version 2: "HoNk hOnK" +
+REGEXP: "(.)(.)"
+REPLACED WITH: "upper(\1)\2"
+
+
+REGEXP: "([a-z])(.)\b"
+REPLACE WITH: "\1upper(\2)"
+
+ +Eridan +------ +
+REGEXP: "([vVwW])"
+REPLACE WITH: "\1\1"
+
+
+REGEXP: "ing\b"
+REPLACE WITH: "in"
+
+ +Feferi +------ +
+REGEXP: [hH]
+REPLACE WITH: ")("
+
+
+REPLACE: "E"
+WITH: "-E"
+
\ No newline at end of file