*ReplaceStr.txtの仕様 [#e1ae6706]
-名前欄、メール欄、本文以外の指定は無視されます。(IDへの適用は不可 "name","mail","msg" のみ使用可)~
-複雑な条件による置換を行いたい場合は[[rescheck.js]]のcheckRawTextを使用しましょう。
-[[非表示(NG)、キーワード(ハイライト)>非表示・キーワード]]についてはV2C側から設定した方が処理が速いようです。
-Twitterの仮想スレッドには、別に[[ReplaceStr_Tw.txt]]が用意されています。

-参照: [[ReplaceStr.txt@JaneStyleヘルプ>http://janesoft.net/janestyle/help/first/ReplaceStr.html]]
-参照: [[ReplaceStr.txtまとめ @ ウィキ>http://www27.atwiki.jp/replacestr/]](流用できるのはStyle用のものです)
-関連項目: [[ReplaceStr_Tw.txt]]


*目次 [#l08f7251]
|新しい記述例を随時募集しています。気軽に加筆してください|
#contents


*名前欄 [#ue995190]
**ハイライト [#r06ca942]

**非表示・省略・無効化 [#i719983c]
***名前欄5文字以上省略 [#z0bc934a]
 //▽名前欄5文字以上省略
 <rx2>(.{5}).*	$1	name 

***名前欄を全て名無しさんに置換 [#oe81752f]
 //▽名前欄を全て名無しさんに置換
 <rx2>(.{1}).*	名無し	name

***特定のコテハンを名無しさんに置換 [#v3cdcfd6]
 //▽特定のコテハンを名無しさんに置換
 <rx2>コテハン名	名無しさん	name

**表示・追加・有効化 [#ja3b511f]


*メール欄 [#i579cc1c]


*本文 [#b5e10ad1]
**ハイライト [#qf6e89b3]
***引用文を着色 [#ffade07c]
&color(red){※[TAB]はキーボードの【Tab】キーで空白を入力して下さい。};
 //▽引用文を着色
 <rx2>&#040;(?:^|<br>) &#123;0,2&#125;)(&#38;&#103;&#116;&#59;(?!&#38;&#108;&#116;&#59;)|>(?!<))(?!\2?[1-91-9][\d0-9]&#123;0,3&#125;(?![\d0-9]|(?:[,,][\d0-9]+)*(?:[,,][\d0-9]+)*[,,][00]|[..][\d0-9])|\2?ID:|(?<!&#38;&#103;&#116;&#59;)*(?:(?: * )&#123;6&#125;|[:; ̄__]&#123;3&#125;))(\2?)(.*?)(?=<br>|$)[TAB]$1<font color=green>$2$3<!-- -->$4</font>[TAB]msg

**非表示・省略・無効化 [#t348d7fa]
***wが2つ以上続けば1つに省略 [#y652b7a1]
 //▽wが2つ以上続けば1つに省略
 <rx2>[wWwW]{2,}(?![A-Za-z0-9_%&\--/=])	<font color=gray>w</font>	msg

***wが10以上なら省略 [#x7cac73a]
 //▽wが10以上なら省略
 <rx2>[wWwW]{10,}(?![A-Za-z0-9_%&\--/=])	w..[略]	msg

***「>1」や「>1」をアンカー化しない [#rb576503]
&color(red){※[TAB]はキーボードの【Tab】キーで空白を入力して下さい。};
 //▽「>1」や「>1」をアンカー化しない
 <rx2>(?:(?<!>)(>)|(?<!&#38;&#103;&#116;&#59;)(&#38;&#103;&#116;&#59;))(?=[\d0-9])[TAB]$1$2<!-- -->[TAB]msg

設定→レス表示→一般→表示→「複数連続した'>'のみアンカーの開始と認識」~
&color(red){※V2C本体にほぼ同機能があります。};

***半角スペースを含む「> 1」や「>> 1」をアンカー化しない [#j5a372dd]
&color(red){※[TAB]はキーボードの【Tab】キーで空白を入力して下さい。};
 //▽半角スペースを含む「> 1」や「>> 1」をアンカー化しない
 <rx2>(&#38;&#103;&#116;&#59;|>)(?= [\d0-9])[TAB]$1<!-- -->[TAB]msg


***不快な言葉を「(`ェ´)ピャー」に置換 [#g24dc6df]
 //▽不快な言葉を「(`ェ´)ピャー」に置換
 <ex2>(バカ|アホ|マヌケ)	(`ェ´)ピャー	msg

**表示・追加・有効化 [#ra100712]
***マウスポンタ [#u0bb32d6]
 //▽マウスポンタ
 <ex>マウスポインタ	マウスポンタ	msg

**URL置換 [#j0a1178e]
***NGFiles.txt晒しスレの画像リンクを無効化 [#x08e3edd]
 //▽NGFiles.txt晒しスレの画像リンクを無効化
 <rx2>h?t?tps?://([\p{Alnum}!#-/:;=?@_~]*(imepita\.jp|pita\.st|pic\.to|\.jpe?g|\.gif|\.png|\.bmp)[\p{Alnum}!#-/:;=?@_~]*)	<font color="#cc0000">【$2リンク無効化】</font> $1	msg	<0>NGFiles.txtを晒すスレ
 <rx2>h?t?tp://(?:w+\d*\.)?(?:[-\w\.]+/index413\.php|amilala\.blogspot|bestgore|blog54\.fc2\.com/g/grodictionary/file|bmezine|charonboat|duvx\.com/book|easyweb\.easynet\.co\.uk/~hiros|feiyu\.com\.cn|festered|gazo01\.chbox\.com/(?:guromovie|occult)/src|gb\.bbs\.ws/book|ginjirou\.blog\.ocn\.ne\.jp/310ch/images|gore\.forcedexistence|goregasm|grannymax|hackpalace\.com/virii/makers|hellplant\.org/cgi-bin/xoor|imepita\.zz\.tc|img\.chan4chan|jodi\.org|kur0nek0\.web\.infoseek\.co\.jp|liquidgeneration\.com/sabotage|liveleak|lol\.to/book|lysll\.cn|mat\.blogdns|mayhem\.net/juke|mobilepict\.zz\.tc|muvc\.net/mumyou|nomullas\.net|omanchin|poetry\.rotten|pya\.cc/pyaimg/img|rotten|snuffx|stileproject|stock\.2ch\.net/test/(?:buy|sell)|strangeworld\.org/uedakana|subculture|theync|transa-na\.net/?news/archive|trasher\.ru/foto/trasher|uncoverreality|ura\.zebla\.net/~guro/bbs|vip\.6to23|xratedhostz\.com/users/loloii|yaromat\.com/macos8)(?:\.com)?/[\p{Alnum}!#-/:;=?@_~]+	<font color="#cc0000">【$1リンク無効化】</font>	msg
 //<rx2>h?t?tp://(mat.blogdns.com)/[\p{Alnum}!#-/:;=?@_~]+	<font color="#cc0000">【$1リンク無効化】</font>	msg

***ImageViewURLReplace.datとの連携(複数表示) [#w32d7f2e]
 //▽ImageViewURLReplace.datとの連携(複数表示)
 <rx>h?ttp://www\.mywife\.cc/cont/wife/\w+/index\.html	$&<br>$&#1	msg
 <rx>h?ttp://www\.kawaiikawaii\.jp/works/-/detail/=/cid=\w+/	$&<br>$&#1<br>$&#2<br>$&#3	msg
 <rx>h?ttp://www2\.g-queen\.com/ms/bymodel/\w{2}\d{6,9}\.html	$&<br>$&#2	msg
 <rx>h?ttp://www2\.g-queen\.com/ms/bymodel/\w{2}\d{3}\.html	$&<br>$&#2<br>$&#3<br>$&#4<br>$&#5	msg
 <rx>h?ttp://up2\.(viploader\.net/pic/src/viploader\d+\.jpg\.html)	http://up2.$1<br>└[P]http://find.$1
 <rx>h?ttp://pic2ch\.giox\.org/thread/\d+/[\w%]+\+	$&<br>$&#1<br>$&#2<br>$&#3<br>$&#4	msg
 <rx>h?ttp://www\.bettykiss\.com/dvdInfo/\d+\.html	$&<br>$&#1	msg
 <rx>h?ttp://www\.hamajim\.com/shop/\w+-\d+\.php	$&<br>$&#1	msg
 <rx>h?ttp://(?:www\.)?maniaxfilm\.com/page/detail\.php\?number=[-\w]+	$&<br>$&#1	msg
 <rx>h?ttp://www\.r-shodo\.tv/\w+/\w+\.html	$&#1<br>$&#2<br>$&#3<br>$&#4<br>$&#5	msg
 <rx>h?ttp://(?:www\.)?show(?:\.twdmm|\.avcd0)\.com/\w+\.html	$& <font color=tomato>《$&#screen_shot》</font>	msg
 <rx2>tp://(pic\.vc/\?\w+)	tp://$1<font color=cornflowerblue>《ttp://1@$1 ttp://2@$1》</font>	msg
 <rx>h?ttp://(?:www\.)?uraparadvd\.com/detail/\w+\.html	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?no1dvdvd\.net/details/\w+\.html	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?adultdvd\.jp/catalog/product_info\.php/[\w/]+	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?dvdtuhan\.com/index\.php\?[-=&\w]+	$&#1<br>$&#2	msg
 <rx>h?ttp://page\d+\.auctions\.yahoo\.co\.jp/jp/auction/[a-z]\d+	$& (オリジナル)<br>$&#2<br>$&#3	msg
 <rx>h?ttp://(?:www\.)?otonanodvd\.com/detail/\w+\.html	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?dvd-ousama\.com/index\.php\?main_page=[-?\w=&]+	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?dvdshop-jp\.com/\w+/\w+\.htm	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?pornoah\.com/index\.php\?main_page=product_info&products_id=\d+&[\w=]+	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?eromise\.com/shop/shop\.cgi\?order=[-\w&=%\.]+	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?erokin\.com/main\.php\?item=[-\w=%&]+#listrow_1	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?uraparadvd\.com/detail/\d+\.html	$&#1<br>$&#2	msg
 <rx>http://www\.dvdbanks\.com/detail\.html\?titleid=\d+	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?dvd-global\.com/detail\.html\?itemcode=[-\w]+	$&#1<br>$&#2	msg
 <rx>http://(?:www\.)?(?:twdmm|avcd0|avxsale)\.com/shop/product_info\.php\?[-&\w=]*?products_id=\d+[-&\w=]*	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.|show\.)?gs9\.\d+dvdx\.com/[\w/]+\.php\?(?:[\w&=]+)?products_id[\w&=]+(?:www\.)?	$&#1<br>$&#2	msg
 <rx>h?ttp://(?:www\.)?genie\.x0\.com/j\.php\?id=\w+&u=http%3A%2F%2F(item\.slide\.com)%2F(\w+)%2F(\w+)%2F(\w+)%2F(\w+)%2F(.*)%2F(.*)	http://$1/$2/$3/$4/$5/$6/$7	msg
 <rx>(h?ttp://\w.upup\.be/)pl/imageout\.cgi\?q=1(&k=\w+)	$1?mode=disp$2	msg

***@ピタ10枚表示 [#bd0a0ce6]
 //▽@ピタ10枚表示
 <rx>(h?ttp://p\.pita\.st/\?)(?:m=)?(\w{8})(?![&#])	$& (original)<br>《$1m=$2#1 $1m=$2#2 $1m=$2#3<br> $1m=$2#4 $1m=$2#5 $1m=$2#6<br> $1m=$2#7 $1m=$2#8 $1m=$2#9》	msg

***ピクト10枚表示 [#ade16616]
 //▽ピクト10枚表示
 <rx>(h?ttp://\w\.pic\.to(?::80)?/\w+)(?:\?r=?\d+)?	$& (original) 《$1?r1 $1?r2<br>$1?r3 $1?r4 $1?r5 $1?r6<br>$1?r7 $1?r8 $1?r9 $1?r10》	msg

***あぷあぷ6枚表示 [#wcb10f58]
 //▽あぷあぷ6枚表示
 <rx>h?ttp://(\w\.upup\.be/)[^\s:]*?(?:\?|k=)(\w{10})(?!#)[^\s:]*	$& (original) 《http://$1?$2#2 http://$1?$2#3<br>http://$1?$2#4 http://$1?$2#5 http://$1?$2#6》	msg
 //<rx>h?ttp://(\w\.upup\.be/\?\w{10})	http://$1 (original) 《http://2@$1 http://3@$1<br>http://4@$1 http://5@$1 http://6@$1 http://qr@$1》	msg


***URL内の"("")"をエンコードしてURL化する [#d8a631c1]
 //▽URL内の"("")"をエンコードしてURL化する
 <rx2>tps?://[A-Za-z0-9_%&\--/=()]+?(?:/|\.\w{2,5})(?=\((?![A-Za-z0-9_%&\--/=]*\)[A-Za-z0-9_%&\--/=]))	$&<escape>	msg
 <rx2>tps?://(?:[A-Za-z0-9_%&\--/=]+|\([A-Za-z0-9_%&\--/=]*\))+	$&<url>	msg
 <rx2>\((?=[A-Za-z0-9_%&\--/=()#;]*<url>)	&#40;	msg
 <rx2>\)(?=[A-Za-z0-9_%&\--/=()#;]*<url>)	&#41;	msg
 <rx2>(?:<escape>|<url>)		msg

***@wikiのレス表示欄内タグを整理 [#acf0b311]
 //▽@wikiのレス表示欄内タグを整理
 <rx><a class="atpedia_autolink" href="http://atpedia\.jp/word/.+?">(.+?)</a>	$1	msg	<4>http://www.\.atchs\.jp/

***ニコニコ動画の省略されたURLを補正 [#q5cd6b16]
 //▽ニコニコ動画の省略されたURLを補正
 <rx2>(^|[^/])(sm|nm|lv)(\d+)	http://www.nicovideo.jp/watch/$2$3	msg

***Y-BBSと写メchのURL修正 [#rb25a568]
 //Y-BBSと写メchのURL修正
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/raunnji$1<br>	msg	<4>http://y-bbs\.net/raunnji/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/yobi/$1<br>	msg	<4>http://y-bbs\.net/yobi/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/warai/$1<br>	msg	<4>http://y-bbs\.net/warai/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/mania/$1<br>	msg	<4>http://y-bbs\.net/mania/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/nori/$1<br>	msg	<4>http://y-bbs\.net/nori/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/mata/$1<br>	msg	<4>http://y-bbs\.net/mata/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/bbs_ai/$1<br>	msg	<4>http://y-bbs\.net/bbs_ai/\w+
 <rx><a\shref=["']\.\./([^"']+)[^>]+>	$&http://ws1.y-bbs.net/dare/$1<br>	msg	<4>http://ws1\.y-bbs\.net/dare/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://ws2.y-bbs.net/kawaii/$1<br>	msg	<4>http://ws2\.y-bbs\.net/kawaii/\w+
 <rx><a\shref=["']\.\./([^"']+)[^>]+>	$&http://ws1.y-bbs.net/av/$1<br>	msg	<4>http://ws1\.y-bbs\.net/av/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://ws3.y-bbs.net/mizugi/$1<br>	msg	<4>http://ws3\.y-bbs\.net/mizugi/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/bbsero/$1<br>	msg	<4>http://y-bbs\.net/bbsero/\w+
 <rx><a\shref=["']\.\./([^"']+)[^>]+>	$&http://ws1.y-bbs.net/jk/$1<br>	msg	<4>http://ws1\.y-bbs\.net/jk/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://ws2.y-bbs.net/top/$1<br>	msg	<4>http://ws2\.y-bbs\.net/top/\w+
 <rx><a\shref=["']\.\./([^"']+)[^>]+>	$&http://ws1.y-bbs.net/ol/$1<br>	msg	<4>http://ws1\.y-bbs\.net/ol/\w+
 <rx><a\shref=["']\.\./([^"']+)[^>]+>	$&http://ws1.y-bbs.net/gal/$1<br>	msg	<4>http://ws1\.y-bbs\.net/gal/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/bbsfree/$1<br>	msg	<4>http://y-bbs\.net/bbsfree/\w+
 <rx><a\shref=["']\.\./([^"']+)[^>]+>	$&http://ws1.y-bbs.net/tousatu/$1<br>	msg	<4>http://ws1\.y-bbs\.net/tousatu/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/anime/$1<br>	msg	<4>http://y-bbs\.net/anime/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/jyukujyo/$1<br>	msg	<4>http://y-bbs\.net/jyukujyo/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/kosu/$1<br>	msg	<4>http://y-bbs\.net/kosu/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/moe/$1<br>	msg	<4>http://y-bbs\.net/moe/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://ws3.y-bbs.net/feti/$1<br>	msg	<4>http://ws3\.y-bbs\.net/feti/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://y-bbs.net/gironn/$1<br>	msg	<4>http://y-bbs\.net/gironn/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://ws3.y-bbs.net/gaijin/$1<br>	msg	<4>http://ws3\.y-bbs\.net/gaijin/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://ws3.y-bbs.net/oppai/$1<br>	msg	<4>http://ws3\.y-bbs\.net/oppai/\w+
 <rx><a\shref=["']\.\.([^"']+)[^>]+>	$&http://shamech.kir.jp/ch/$1<br>	msg	<4>http://shamech.kir.jp/ch/\w+
 <rx><img\ssrc="\.\./\w+/img\d{1,2}/\d+\.jpg"\swidth="\d+"\sheight="\d+"\salign=left>		msg
 <rx>http://(ws[123]\.)?y-bbs\.net/\w+/?/test/read\.php/\w+/\d+/[0-9,-]+<br>		msg


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS