If I understood you correctly:
##############
# OPEN ubb_lib.cgi #
##############
FIND
====
$_[0] =~ s,(
),
code:
$2
,isg;
REPLACE WITH
============
$_[0] =~ s,([kod])(.+?)([/kod]),
kod:
$2
,isg;
FIND
====
$_[0] =~ s/(
code:
?)(.+?)(
)/
/isg;
REPLACE WITH
============
$_[0] =~ s/(
kod:
?)(.+?)(
)/[KOD]$2[/KOD]/isg;
###################
# OPEN ubb_lib_posting.cgi #
###################
FIND
====
$_[0] =~ s/(
code:
?)(.+?)(
)/
/isg;
REPLACE WITH
============
$_[0] =~ s/(
kod:
?)(.+?)(
)/[KOD]$2[/KOD]/isg;
##################
# OPEN public_common.pl #
##################
FIND
====
var codeUBBCode = "[CODE] [/ CODE]";
REPLACE WITH
============
var codeUBBCode = "[KOD] [/KOD]";
###########################
# Upload the file, clear your cache, etc.
[ April 20, 2001 12:38 PM: Message edited by: LK ]