9-hole mini-golf: Text Manipulation
Score: 382 * 1.12 = 462

Languages prone to change.

1. APL, 8 4

Thanks @marinus for shaving 4 chars off.

f←⍴~


Called with the strings as the left and right arguments, eg.

      'foobarbaz' f 'ao'
5


2. Ruby, 35 31

Thanks @DoorknobofSnow for shaving 4 chars off.

f=-&gt;s,r{s.gsub(/(?&lt;=^)/,r+' ')}


3. Python, 48

f=lambda s,n,b:s.replace(*['\t',' '*n][::2*b-1])


4. GolfScript, 20

{@//zip{' '*}%n*}:f;


Assumes that the arguments are on the stack. Test online

5. J, 50

f=:({~[:(i.&gt;./)+/"1@=@(}.~0-1{$))@|:@([$~],1+[:$[)


Called with the string as the left argument and the number as the right, eg.

   'abcdeabcfghiabc' f 3
abc


6. Ruby, 61

f=-&gt;s{s.gsub(/(?&lt;!^| )[^ ]+(?!$| )/){[*$&amp;.chars].shuffle*''}}


7. GolfScript, 39 35 34

{[.10,' '*-{{}/]' '*}{~]''+}if}:f;


Again, assumes the argument is on the stack. Test online

8. Perl, 98

sub f{$_=@_[0];s!\*\*(.+?)\*\*!&lt;b&gt;$1&lt;/b&gt;!g;s!\*(.+?)\*!&lt;i&gt;$1&lt;/i&gt;!g;s!`(.+?)`!&lt;code&gt;$1&lt;/code&gt;!g;$_}


9. Haskell, 36

f s n r=[(x++cycle r)!!n|x&lt;-words s]