Skip to content

Instantly share code, notes, and snippets.

@kgtkr
Last active April 1, 2017 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgtkr/3e50e78ec9e2c93db2f8f8d56d8b598e to your computer and use it in GitHub Desktop.
Save kgtkr/3e50e78ec9e2c93db2f8f8d56d8b598e to your computer and use it in GitHub Desktop.
//スロットを短く省略
<rx><hr>.+?((Win!! [0-9]+ pts\.)?\(LA: [0-9\.]+\, [0-9\.]+\, [0-9\.]+\)) <br> <font color="blue">$1</font> msg
//2017年エイプリルフールの特殊文字を短く省略
<rx><hr>Evaluation: (.*) <br><font color="red">$1</font> msg
//httpsから始まる2ch.netのリンクをhttpからに書き換え
<rx>https://(([\w/:%#\$&\?\(\)~\.=\+\-]+\.)2ch.net(/[\w/:%#\$&\?\(\)~\.=\+\-]+))? http://$1 msg
//itestのスレのリンクを通常のread.cgiのリンクに置き換え
<rx>https?://itest\.2ch\.net/([a-z0-9]+)/test/read\.cgi/([a-z0-9]+)/([0-9]+)/? http://$1.2ch.net/test/read.cgi/$2/$3/ msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment