Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > ash string[int] boo; string oob; foreach i in $items[]{clear(boo); oob = ""; boo = i.name.to_lower_case().split_string(""); foreach j in boo{ oob = boo[j]+oob;} if(i.name.to_lower_case() == oob) print(i);}
- PB&BP
- repaid diaper
- X
- O
- G
- Returned: void
- ==========================================================
- //cheatyface palindromes:
- > ash string[int] boo; string oob; foreach i in $items[]{clear(boo); oob = ""; boo = i.name.to_lower_case().split_string(""); foreach j in boo{ oob = boo[j]+oob;} if(i.name.to_lower_case().replace_string(" ","") == oob.replace_string(" ","")) print(i);}
- bird rib
- lion oil
- stunt nuts
- wet stew
- wet stunt nut stew
- Mega Gem
- [2268]Staff of Fats
- Drowsy Sword
- a butt tuba
- PB&BP
- accordionoid rocca
- dumb mud
- [7964]Staff of Fats
- repaid diaper
- X
- O
- G
- Returned: void
- =========================================
- \\even more cheatyface palindromes:
- > ash string[int] boo; string oob; foreach i in $items[]{clear(boo); oob = ""; boo = i.name.to_lower_case().split_string(""); foreach j in boo{ oob = boo[j]+oob;} if(replace_all(create_matcher( "[^\\w]",i.name.to_lower_case() ),"") == replace_all( create_matcher( "[^\\w]",oob ),"" ) ) print(i);}
- Talisman o' Namsilat
- bird rib
- lion oil
- stunt nuts
- wet stew
- wet stunt nut stew
- Mega Gem
- [2268]Staff of Fats
- Drowsy Sword
- a butt tuba
- PB&BP
- accordionoid rocca
- dumb mud
- Sogg-Os
- [7964]Staff of Fats
- Liam's mail
- repaid diaper
- X
- O
- G
- Returned: void
Advertisement
Add Comment
Please, Sign In to add comment