Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp!
I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS
I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful.
Well, or a few vim keystroke!
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp!
I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS
I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful.
Well, or a few vim keystroke!
Output
[Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc]