my $test = "Here is the there"; $test =~s/(ther*)/\$1\<\/test\>/ig; print "$test\n";