I had an email last week from mate about using the regular expressions to replace matched occurrences in a string. Starting with the string "xabcy and then stuff xwefy" they wanting to find any words beginning with x and ending in a y, remove the x and y and capitalise the remains of the word...