Sed command to replace with pattern except for text and closing parentheses

Can someone help me with a sed command:
There will be multiple occurences in a file that look like this:
MyFunction(12c34r5)
and I need to replace that with just the 12c34r5 for every occurrence. The text between the parentheses will be different on each occurrence, so I can't search for that. But the MyFunction text will always be the same, and it will always have an opening and closing parentheses around the text. Having trouble figuring out the sed command that uses the pattern in the replacement "Except for" part of the pattern?

$ cat inputfile
MyFunction(12c34r5) MyFunction(12c34r5) MyFunction(12c34r5)
MyFunction(abc) MyFunction(12c34r5)
MyFunction(123)
$
$ sed 's/MyFunction(\([^)]*\))/\1/g' inputfile
12c34r5 12c34r5 12c34r5
abc 12c34r5
123

Use -i switch for in-file replacement.

Hi,

Try this,

sed 's/\(.*\)MyFunction(\([0-9a-zA-Z]*\))\(.*\)/\1\2\3/g' FileName

Cheers,
Ranga:)

@rangarasan: This would greedily match the whole line (courtesy, .* at the beginning of regex) and then give up text one by one until it matched MyFunction(blah). Thus, this would replace only the last occurrence of MyFunction(blah) in a line. Please check.

using tr

$ tr -d 'MyFunction()' < infile
1234r5 1234r5 1234r5
ab 1234r5
123