2007年11月18日 5:25 am #5230
FLONT
参加者
takane56 様
数字を一つ減少させる点を見落としていました、
失礼いたしました。
ただ、数字を減少させることは正規表現では出来ません。
以下のマクロ(JavaScript)を保存してご利用ください。
Redraw = false;
if( document.selection.IsEmpty ){
document.selection.SelectAll();
}
var text = document.selection.Text;text = text.replace( /()(d{3})/g , function( $0 , $1 , $2 ){ return $1+”post_”+(parseInt( $2 )-1)+”.html” } );
document.selection.Text = text;
Redraw = true;